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

Method priority

src/graph/traversal.ts:126–126  ·  view source on GitHub ↗
(e: Edge)

Source from the content-addressed store, hash-verified

124 const adjacentEdges = this.getAdjacentEdges(node.id, opts.direction, opts.edgeKinds);
125 adjacentEdges.sort((a, b) => {
126 const priority = (e: Edge) => e.kind === 'contains' ? 0 : e.kind === 'calls' ? 1 : 2;
127 return priority(a) - priority(b);
128 });
129

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected