MarkedGraph.eraseEdge

MarkedGraph.eraseEdge(*args)

Erase the edge (and its marks) if it exists.

Parameters:
  • n1 (int)

  • n2 (int)

Return type:

None

Example

import pyagrum as gum

g = gum.fastMarkedGraph("A->B<->C")
g.eraseEdge(1, 2)
print(g)
# {0<A>,1<B>,2<C>} , {0 --> 1}

Used by

MarkedGraph, PAG

Inheritance diagram of pyagrum.MarkedGraph, pyagrum.PAG