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.PyGraph.remove_edges_from#

PyGraph.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.