getDepth()
getDepth(
graph):number
Defined in: graph-query.ts:197
Maximum nesting depth of the graph. The root node is depth 0.
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | ExecutionGraph | The execution graph. |
Returns
number
The maximum depth (0 for a single-node graph, -1 for empty).