eea41a4578b5021bbc16eb171bceb453cbde2419,pgmpy/base/UndirectedGraph.py,UndirectedGraph,check_clique,#UndirectedGraph#,115

Before Change


        False

        
        for i in range(len(nodes)):
            for j in range(i + 1, len(nodes)):
                if not self.has_edge(nodes[i], nodes[j]):
                    return False
        return True

After Change


        nodes: list of nodes.
            Nodes to check if they are a part of any clique.
        
        for node1, node2 in itertools.combinations(nodes, 2):
            if not self.has_edge(node1, node2):
                return False
        return True

    def is_triangulated(self):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: pgmpy/pgmpy
Commit Name: eea41a4578b5021bbc16eb171bceb453cbde2419
Time: 2014-11-30
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/base/UndirectedGraph.py
Class Name: UndirectedGraph
Method Name: check_clique


Project Name: pgmpy/pgmpy
Commit Name: bf04af44063f12cdc98db9d5cab71edb210e76b1
Time: 2014-02-25
Author: ankurankan@gmail.com
File Name: pgmpy/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: get_independencies


Project Name: pgmpy/pgmpy
Commit Name: d86fe5fa05b434e32ac7a9e8d59fe7acb2841d98
Time: 2014-07-31
Author: ankurankan@gmail.com
File Name: pgmpy/MarkovModel/MarkovModel.py
Class Name: MarkovModel
Method Name: _in_clique