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

Function order

graph-ui/src/galaxy/scope-path.ts:10–12  ·  view source on GitHub ↗
(a: { to: number; edge: GraphEdge; index: number }, b: { to: number; edge: GraphEdge; index: number })

Source from the content-addressed store, hash-verified

8
9/** The traversal key for deterministic ties: neighbor first, then edge identity. */
10const order = (a: { to: number; edge: GraphEdge; index: number }, b: { to: number; edge: GraphEdge; index: number }) =>
11 a.to - b.to || (a.edge.id ?? Number.MAX_SAFE_INTEGER) - (b.edge.id ?? Number.MAX_SAFE_INTEGER)
12 || a.edge.type.localeCompare(b.edge.type) || a.index - b.index;
13
14/** Shortest path from any root to `target` over the loaded scope edges only.
15 * `outbound` follows edges, `inbound` walks them backwards (who reaches the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected