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

Function graphCounts

__tests__/index-command.test.ts:43–51  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

41}
42
43function graphCounts(dir: string): { nodes: number; edges: number } {
44 const cg = CodeGraph.openSync(dir);
45 try {
46 const stats = cg.getStats();
47 return { nodes: stats.nodeCount, edges: stats.edgeCount };
48 } finally {
49 cg.close();
50 }
51}
52
53function isAlive(pid: number): boolean {
54 try {

Callers 1

Calls 3

closeMethod · 0.65
openSyncMethod · 0.45
getStatsMethod · 0.45

Tested by

no test coverage detected