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.node_indexes#

PyDiGraph.node_indexes()#

Return a list of all node indices.

Note

This is identical to node_indices(), which is the preferred method to get the node indices in the graph. This exists for backwards compatibility with earlier releases.

Returns:

A list of all the node indices in the graph

Return type:

NodeIndices