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.PyDAG.predecessors#
- PyDAG.predecessors(node, /)#
Return a list of all the node predecessor data.
- Parameters:
node (int) – The index for the node to get the predecessors for
- Returns:
A list of the node data for all the parent neighbor nodes
- Return type:
list