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.predecessors#
- PyDiGraph.predecessors(node, /)#
Return a list of data of all node predecessors.
- Parameters:
node (int) – The index of the node to get the predecessors for
- Returns:
A list of the node data of all node’s predecessors
- Return type:
list[S]