getSubtree()
getSubtree(
graph,nodeId):ExecutionNode[]
Defined in: graph-query.ts:160
Get all descendants of a node (children, grandchildren, etc.) in breadth-first order. The given node itself is NOT included.
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | ExecutionGraph | The execution graph to search. |
nodeId | string | The ancestor node ID. |
Returns
All descendant nodes in BFS order.