UndiGraph.eraseEdge
- UndiGraph.eraseEdge(n1, n2)
Erase the edge between n1 and n2.
- Parameters:
n1 (
int) – the id of the tail noden2 (
int) – the id of the head node
- Return type:
None
Example
import pyagrum as gum
g = gum.fastUndiGraph("A-B-C")
g.eraseEdge(1, 0)
g.edges()
# {(1, 2)}
Class
Overridden in