If the tree root is set, it resets it with the inverse type hierarchy direction.
Initializes the tree by calculating and setting a new tree root node.
If the tree root is set, it resets it with the inverse type hierarchy direction.