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

Method weight

src/mcp/tools.ts:3741–3742  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

3739 // `Discovery.refresh fetchApps Decoder.Decode` their links to each other filled
3740 // the cap and hid the one link into `fetchApps`, which the query names exactly.
3741 const weight = (id: string): number =>
3742 uniqueNamedNodeIds.has(id) || dynNamed.has(id) ? 3 : named.has(id) ? 1 : 0;
3743 const links: Array<{ edge: Edge; src: Node; tgt: Node; lowValue: boolean; weight: number; turn: number }> = [];
3744 const seen = new Set<string>();
3745 // A link's turn: how many links of its rank the same named symbol already has.

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected