getChildren()
getChildren(
graph,nodeId):ExecutionNode[]
Defined in: graph-query.ts:38
Get the direct children of a node.
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | ExecutionGraph | The execution graph to search. |
nodeId | string | The parent node ID. |
Returns
Array of child nodes (may be empty).
Example
const children = getChildren(graph, rootId);