(self, node)
return node == self.root
Check if a given node is the root node.

        Parameters
        ----------
        node

        Returns
        -------
Check if a given node is the root node.
Check if a given node is the root node .
def is_root(self, node):
        """Check if a given node is the root node.

        Parameters
        ----------
        node

        Returns
        -------

        """
        return node == self.root
def is_root ( self , node ) : return node == self . root