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

Method getNodeMetrics

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

3319 * @returns Object containing various complexity metrics
3320 */
3321 getNodeMetrics(nodeId: string): {
3322 incomingEdgeCount: number;
3323 outgoingEdgeCount: number;
3324 callCount: number;
3325 callerCount: number;
3326 childCount: number;
3327 depth: number;
3328 } {
3329 return this.graphManager.getNodeMetrics(nodeId);
3330 }
3331
3332 // ===========================================================================
3333 // Context Building

Callers 1

graph.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected