

def check_clique(self, nodes):
    '\n        Check if the given nodes form a clique.\n\n        Parameters\n        ----------\n        nodes: list, array-like\n            List of nodes to check if they are a part of any clique.\n        '
    for (node1, node2) in itertools.combinations(nodes, 2):
        if (not nodes.has_edge(node1, node2)):
            return False
    return True

dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/base/UndirectedGraph.py UndirectedGraph.check_clique/VarMisuse@35/112 `self`->`nodes`