MarkedGraph.clearEdges

MarkedGraph.clearEdges()

Remove all edges and their endpoint marks from the graph.

Nodes are preserved; only edges and their associated marks are removed.

Return type:

None

Example

import pyagrum as gum

g = gum.fastMarkedGraph("A->B<->C")
g.clearEdges()
g.size(), g.sizeEdges()
# (3, 0)

Used by

MarkedGraph, PAG

Inheritance diagram of pyagrum.MarkedGraph, pyagrum.PAG