def find_max_cliques(tree, n_cliques=1):
    """
    Returns maximum clique in the tree decomposition tree

    Parameters
    ----------
    tree : networkx.Graph
           graph holding the tree decomposition
    n_cliques : int
           number of cliques to return

    Returns
    -------
    cliques: list of cliques

    """
    max_width = 0
    max_cliques = None
    for clique in tree.nodes():
        width = len(clique)
        if width > max_width:
            max_width = width
            max_cliques = [clique]
        elif width == max_width:
            max_cliques.append(clique)
    return max_cliques[:n_cliques]
