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

Method getNodeMetrics

src/index.ts:3351–3360  ·  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

3349 * @returns Object containing various complexity metrics
3350 */
3351 getNodeMetrics(nodeId: string): {
3352 incomingEdgeCount: number;
3353 outgoingEdgeCount: number;
3354 callCount: number;
3355 callerCount: number;
3356 childCount: number;
3357 depth: number;
3358 } {
3359 return this.graphManager.getNodeMetrics(nodeId);
3360 }
3361
3362 // ===========================================================================
3363 // Context Building

Callers 1

graph.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected