This documents the development version of NetworkX. Documentation for the current release can be found here.


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

Returns a list of cliques containing the given node.

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