NetworkX

Previous topic

networkx.graph_number_of_cliques

Next topic

networkx.number_of_cliques

networkx.node_clique_number

node_clique_number(G, nodes=None, with_labels=False, cliques=None)

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.