upToRoot

Returns an iterator over the tree nodes from the parameter obj to the root node. The first node returned from the iterator will be the parameter obj itself.

Parameters

obj

some node in the tree.