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

Method getFanIn

src/index.ts:2425–2427  ·  view source on GitHub ↗

* Fan-in (incoming edge count) for many nodes at once — the "hub" signal, * without a query per node. See QueryBuilder.countIncomingEdges.

(ids: readonly string[])

Source from the content-addressed store, hash-verified

2423 * without a query per node. See {@link QueryBuilder.countIncomingEdges}.
2424 */
2425 getFanIn(ids: readonly string[]): Map<string, number> {
2426 return this.queries.countIncomingEdges(ids);
2427 }
2428
2429 /**
2430 * Incoming edges for many target nodes at once — the mirror of

Callers 5

buildNodeFunction · 0.80
buildMembersFunction · 0.80
buildOutlineEntriesFunction · 0.80
buildStepsFunction · 0.80

Calls 1

countIncomingEdgesMethod · 0.80

Tested by

no test coverage detected