def yield_id(tree):
    """
    Function making it possible to yield id of tree's root

    Input:
    ------

    The tree structure of the junction tree

    Output:
    -------

    Clique ID of tree root

    """
    yield tree[0]
