MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / priority

Function priority

__tests__/graph.test.ts:695–695  ·  view source on GitHub ↗
(e: Edge)

Source from the content-addressed store, hash-verified

693 if (depth >= opts.maxDepth) continue;
694 const adjacentEdges = adjacent(node.id);
695 const priority = (e: Edge) => (e.kind === 'contains' ? 0 : e.kind === 'calls' ? 1 : 2);
696 adjacentEdges.sort((a, b) => priority(a) - priority(b));
697 const fetched = new Map<string, Node>();
698 for (const e of adjacentEdges) {

Callers 2

traverseBFSMethod · 0.85
fetchAllFirstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected