Returns the number of maximal cliques in the graph.
- G (NetworkX graph) – An undirected graph.
- cliques (list) – A list of cliques, each of which is itself a list of nodes. If
not specified, the list of all cliques will be computed, as by
The number of maximal cliques in
You should provide
cliquesif you have already computed the list of maximal cliques, in order to avoid an exponential time search for maximal cliques.