Remove all the nodes and arcs from the graph.
None
Example
import pyagrum as gum g = gum.fastDiGraph("A->B->C") g.clear() g.size(), g.sizeArcs() # (0, 0)
Used by
DiGraph, DAG
DiGraph
DAG
Overridden in
MixedGraph.clear