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.predecessor_indices#
- PyDiGraph.predecessor_indices(node, /)#
Get the predecessor indices of a node.
This will return a list of the node indices 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 indices
- Return type: