rustworkx.PyDiGraph.predecessor_indices#

PyDiGraph.predecessor_indices(node, /)#

Get the predecessor indices of a node.

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

Parameters:

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

Returns:

A list of the neighbor node indicies

Return type:

NodeIndices