def find_root(node):
    """
    Find the root of the current node.

    :param node:
    :return:
    """
    current = node
    while current.parent:
        current = current.parent
    return current