Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

rustworkx.PyDiGraph.get_node_data#

PyDiGraph.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