clear method
Removes all nodes and edges from this graph.
Implementation
Graph clear() {
_nodes.clear();
_edges.clear();
return this;
}
Removes all nodes and edges from this graph.
Graph clear() {
_nodes.clear();
_edges.clear();
return this;
}