The root id nodes to start collecting from
Optional
onVisit: OnEnter<OtherInfo>Called before visiting the subtree of each node. Can be used to stop visiting the subtree starting with this node (return true
stop)
Optional
onExit: OnExit<OtherInfo>Called after the subtree of a node has been visited, called for leafs too (even though their subtree is empty)
Collects all node ids within a tree given by a respective root node