It is optional to add the members visitPush/visitPop to push/pop the nodes that are visited. The parent will always have been the last pushed.
See Implementation
It is optional to add the members visitPush/visitPop to push/pop the nodes that are visited. The parent will always have been the last pushed.