e62eefec874ba701d8e6cfd9bba53d64bb7d9068,graphbrain/hypergraph.py,Hypergraph,search,#Hypergraph#Any#,114

Before Change


            return self.all()
        elif pattern == "@":
            return self.all_atoms()
        elif pattern == "&":
            return self.all_non_atoms()
        elif type(pattern) == str:
            edge = hedge(pattern)

After Change


        
        pattern = hedge(pattern)

        if pattern.is_atom():
            if pattern[0][0] == "*":
                return self.all()
            elif pattern[0][0] == "@":
                return self.all_atoms()
            elif pattern[0][0] == "&":
                return self.all_non_atoms()

        if pattern.is_full_pattern():
            return self.all()
        else:
            return self._search(pattern)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: graphbrain/graphbrain
Commit Name: e62eefec874ba701d8e6cfd9bba53d64bb7d9068
Time: 2019-07-28
Author: telmo@telmomenezes.net
File Name: graphbrain/hypergraph.py
Class Name: Hypergraph
Method Name: search


Project Name: graphbrain/graphbrain
Commit Name: 3de1e0ce4269c1480b03080599f8321d002726e0
Time: 2019-07-20
Author: telmo@telmomenezes.net
File Name: graphbrain/hypergraphs/hypergraph.py
Class Name: Hypergraph
Method Name: add


Project Name: graphbrain/graphbrain
Commit Name: 3de1e0ce4269c1480b03080599f8321d002726e0
Time: 2019-07-20
Author: telmo@telmomenezes.net
File Name: graphbrain/hypergraphs/hypergraph.py
Class Name: Hypergraph
Method Name: all_edges