networkx.algorithms.clique.cliques_containing_nodeΒΆ

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.