NetworkX

Previous topic

networkx.algorithms.clique.node_clique_number

Next topic

networkx.algorithms.clique.cliques_containing_node

networkx.algorithms.clique.number_of_cliques

networkx.algorithms.clique.number_of_cliques(G, nodes=None, cliques=None)

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.