def _root(self):
        """Attribute referencing the root node of the tree.

        :returns: the root node of the tree containing this instance.
        :rtype: Node
        """
        _n = self
        while _n.parent:
            _n = _n.parent
        return _n
def _root ( self ) : _n = self while _n . parent : _n = _n . parent return _n
Attribute referencing the root node of the tree.

        :returns: the root node of the tree containing this instance.
        :rtype: Node