rustworkx.PyDAG.get_node_data#

PyDAG.get_node_data(node, /)#

Return the node data for a given node index

Parameters:

node (int) – The index for the node

Returns:

The data object set for that node

Raises:

IndexError – when an invalid node index is provided