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

Function nodeOrder

graph-ui/src/architecture/semantic-graph.ts:104–104  ·  view source on GitHub ↗
(a: GraphNode, b: GraphNode)

Source from the content-addressed store, hash-verified

102const compare = (a: string, b: string) => a < b ? -1 : a > b ? 1 : 0;
103const identity = (node: GraphNode) => `${node.label}:${node.qualified_name || `#${node.id}`}@${node.file_path ?? ''}`;
104const nodeOrder = (a: GraphNode, b: GraphNode) => compare(identity(a), identity(b));
105const symbolId = (node: GraphNode) => `symbol:${identity(node)}`;
106/**
107 * Conventional test locations: a tests, __tests__ or spec directory, a test

Callers 2

semanticEntryPointsFunction · 0.85
buildSemanticGraphFunction · 0.85

Calls 2

compareFunction · 0.70
identityFunction · 0.70

Tested by

no test coverage detected