clear() ;
this.visited = false ; this.root = true ;
Return whether this node is a root. return root ;
return root ;
Return whether this node has been visited in a traversal. Note that we only support a single traversal at a time. return visited ;
return visited ;
root = false ;
visited = true ;