NetworkX

Previous topic

node_clique_number

Next topic

cliques_containing_node

number_of_cliques

number_of_cliques(G, nodes=None, cliques=None)[source]

Returns the number of maximal cliques for each node.

Returns a single or list depending on input nodes. Optional list of cliques can be input if already computed.