rustworkx.PyDAG.remove_edges_from#

PyDAG.remove_edges_from(index_list, /)#

Remove edges from the graph.

Note if there are multiple edges between the specified nodes only one will be removed.

Parameters:

index_list (list) – A list of node index pairs to remove from the graph

Raises:

NoEdgeBetweenNodes – If there are no edges between a specified pair of nodes.