MarkedGraph.clear

MarkedGraph.clear()

Remove all the nodes and edges from the graph.

Return type:

None

Example

import pyagrum as gum

g = gum.fastMarkedGraph("A->B<->C")
g.clear()
g.empty()
# True

Used by

MarkedGraph, PAG

Inheritance diagram of pyagrum.MarkedGraph, pyagrum.PAG