clear method
Clears the internal state of the object. A new search is now possible.
Implementation
DFS clear() {
found = false;
_route.clear();
_visited.clear();
_spanningTree.clear();
return this;
}
Clears the internal state of the object. A new search is now possible.
DFS clear() {
found = false;
_route.clear();
_visited.clear();
_spanningTree.clear();
return this;
}