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

Method getNodeAndEdgeCount

src/db/queries.ts:5788–5792  ·  view source on GitHub ↗

* Lightweight (nodes, edges) count snapshot. Used around an index/sync * run to compute true additions across extraction + resolution + * synthesis — the per-phase counter in the orchestrator only sees * extraction's contribution, which is why the CLI summary under-reported * the edge co

()

Source from the content-addressed store, hash-verified

5786 * the edge count (resolution + synthesizer edges were invisible).
5787 */
5788 getNodeAndEdgeCount(): { nodes: number; edges: number } {
5789 return this.db
5790 .prepare('SELECT (SELECT COUNT(*) FROM nodes) AS nodes, (SELECT COUNT(*) FROM edges) AS edges')
5791 .get() as { nodes: number; edges: number };
5792 }
5793
5794 /**
5795 * For each language, how many files it has and how many yielded a symbol: a

Callers 4

indexAllMethod · 0.80
syncMethod · 0.80
synthesizeCallbackEdgesFunction · 0.80

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected