MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / edge

Function edge

graph-ui/src/galaxy/scope-path.test.ts:5–5  ·  view source on GitHub ↗
(id: number, source: number, target: number, type = 'CALLS', line?: number)

Source from the content-addressed store, hash-verified

3import type { GraphEdge } from './types';
4
5const edge = (id: number, source: number, target: number, type = 'CALLS', line?: number): GraphEdge => ({ id, source, target, type, line });
6const hops = (steps: ReturnType<typeof shortestScopePath>) => steps?.map(step => `${step.from}>${step.to}:${step.edge.id}`);
7
8describe('shortest path inside the loaded scope', () => {

Callers 1

scope-path.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected