def __acquire_set(nodes):
    """
    Acquires the set of nodes.
    :param nodes: roots
    :return: descendants
    """
    descendants = []
    for node in nodes:
        descendants.extend(node.list_descendants())
    return descendants
