* Get complexity metrics for a node * * @param nodeId - ID of the node * @returns Object containing various complexity metrics
(nodeId: string)
| 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 |