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