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.PyDAG.remove_edge#

PyDAG.remove_edge(parent, child, /)#

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