Function
edge
(id: number, source: number, target: number, type = 'CALLS', line?: number)
Source from the content-addressed store, hash-verified
| 3 | import type { GraphEdge } from './types'; |
| 4 | |
| 5 | const edge = (id: number, source: number, target: number, type = 'CALLS', line?: number): GraphEdge => ({ id, source, target, type, line }); |
| 6 | const hops = (steps: ReturnType<typeof shortestScopePath>) => steps?.map(step => `${step.from}>${step.to}:${step.edge.id}`); |
| 7 | |
| 8 | describe('shortest path inside the loaded scope', () => { |
Tested by
no test coverage detected