rustworkx.PyDiGraph.successor_indices#

PyDiGraph.successor_indices(node, /)#

Get the successor indices of a node.

This will return a list of the node indicies for the succesors of a node

Parameters:

node (int) – The index of the node to get the successors of

Returns:

A list of the neighbor node indicies

Return type:

NodeIndices