NetworkX

Previous topic

networkx.number_of_cliques

Next topic

Clustering

networkx.cliques_containing_node

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

Returns a list of cliques containing the given node.

Returns a single list or list of lists depending on input nodes. Returns a dict keyed by node if “with_labels=True”. Optional list of cliques can be input if already computed.