def check_clique(self, nodes):
        for node1, node2 in itertools.combinations(nodes, 2):
            if not self.has_edge(node1, node2):
                return False
        return True
Check if the given nodes form a clique.
dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/base/UndirectedGraph.py/UndirectedGraph.check_clique