Returns the root node, this is, will follow the tree up to the node with no parent and will return it.
Note that this function will throw if the passed object is not a node.
Root object type.
Node to get the root from.
Root object.
Returns the root node, this is, will follow the tree up to the node with no parent and will return it.
Note that this function will throw if the passed object is not a node.