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

Method getNodeMetrics

src/index.ts:3248–3257  ·  view source on GitHub ↗

* Get complexity metrics for a node * * @param nodeId - ID of the node * @returns Object containing various complexity metrics

(nodeId: string)

Source from the content-addressed store, hash-verified

3246 * @returns Object containing various complexity metrics
3247 */
3248 getNodeMetrics(nodeId: string): {
3249 incomingEdgeCount: number;
3250 outgoingEdgeCount: number;
3251 callCount: number;
3252 callerCount: number;
3253 childCount: number;
3254 depth: number;
3255 } {
3256 return this.graphManager.getNodeMetrics(nodeId);
3257 }
3258
3259 // ===========================================================================
3260 // Context Building

Callers 1

graph.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected