rustworkx.PyGraph.remove_edge#

PyGraph.remove_edge(node_a, node_b, /)#

Remove an edge between 2 nodes.

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

Parameters:
  • parent (int) – The index for the parent node.

  • child (int) – The index of the child node.

Raises:

NoEdgeBetweenNodes – If there are no edges between the nodes specified