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

Method getNodeMetrics

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

3332 * @returns Object containing various complexity metrics
3333 */
3334 getNodeMetrics(nodeId: string): {
3335 incomingEdgeCount: number;
3336 outgoingEdgeCount: number;
3337 callCount: number;
3338 callerCount: number;
3339 childCount: number;
3340 depth: number;
3341 } {
3342 return this.graphManager.getNodeMetrics(nodeId);
3343 }
3344
3345 // ===========================================================================
3346 // Context Building

Callers 1

graph.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected