(self)
Right rotation
Right rotation
Right rotation
def rotate_right(self):
        """
        Right rotation
        """
        new_root = self.node.left.node
        new_left_sub = new_root.right.node
        old_root = self.node

        self.node = new_root
        old_root.left.node = new_left_sub
        new_root.right.node = old_root
def rotate_right ( self ) : new_root = self . node . left . node new_left_sub = new_root . right . node old_root = self . node self . node = new_root old_root . left . node = new_left_sub new_root . right . node = old_root