getNode()
getNode(
graph,nodeId):ExecutionNode|undefined
Defined in: graph-query.ts:22
Find a node by its ID.
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | ExecutionGraph | The execution graph to search. |
nodeId | string | The node ID to look up. |
Returns
ExecutionNode | undefined
The node, or undefined if not found.
Example
const node = getNode(graph, 'node_002');
if (node) console.log(node.name);