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

Method priority

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected