rustworkx.PyDAG.node_indexes#

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