def graph_number_of_cliques(G,cliques=None):
    if cliques is None:
        cliques=list(find_cliques(G))
    return   len(cliques)
Returns the number of maximal cliques in G.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/clique.py/graph_number_of_cliques