rustworkx.PyDAG.in_edges#
- PyDAG.in_edges(node, /)#
Get the index and edge data for all parents of a node.
This will return a list of tuples with the parent index the node index and the edge data. This can be used to recreate add_edge() calls. :param int node: The index of the node to get the edges for
- Parameters:
node (int) – The index of the node to get the edges for
- Returns:
A list of tuples of the form:
(parent_index, node_index, edge_data)`
- Return type: