networkx.graph_number_of_cliques
networkx.number_of_cliques
Returns the size of the largest maximal clique containing each given node.
Returns a single or list depending on input nodes. Returns a dict keyed by node if “with_labels=True”. Optional list of cliques can be input if already computed.