d86fe5fa05b434e32ac7a9e8d59fe7acb2841d98,pgmpy/MarkovModel/MarkovModel.py,MarkovModel,_in_clique,#MarkovModel#Any#,397

Before Change


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

After Change


        Check if the all the nodes belong to a single clique in the graph
        
        for node1, node2 in itertools.combinations(nodes, 2):
            if not self.has_edge(node1, node2):
                return False
        return True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: RaRe-Technologies/gensim
Commit Name: ac7486a69da6ce5d9873216bad86afa1a10191fc
Time: 2015-05-03
Author: fbarrios@fi.uba.ar
File Name: gensim/summarization/summarizer.py
Class Name:
Method Name: _set_graph_edge_weights


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