3de1e0ce4269c1480b03080599f8321d002726e0,graphbrain/tests/test_hypergraph.py,TestHypergraph,test_atoms,#TestHypergraph#,43

Before Change


        self.hg.destroy()
        self.hg.add(("size", "graphbrain/1", "7"))
        self.hg.add(("is", "graphbrain/1", "great/1"))
        self.hg.add(("src", "mary/1", ("is", "graphbrain/1", "great/1")))

        labels = set([ent2str(v) for v in self.hg.all_atoms()])
        self.assertEqual(labels,

After Change


        self.hg.add("(is graphbrain/1 great/1)")
        self.hg.add("(src mary/1 (is graphbrain/1 great/1))")

        labels = set([edge.to_str() for edge in self.hg.all_atoms()])
        self.assertEqual(labels,
                         {"size", "graphbrain/1", "7", "is", "great/1", "src",
                          "mary/1"})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: graphbrain/graphbrain
Commit Name: 3de1e0ce4269c1480b03080599f8321d002726e0
Time: 2019-07-20
Author: telmo@telmomenezes.net
File Name: graphbrain/tests/test_hypergraph.py
Class Name: TestHypergraph
Method Name: test_atoms


Project Name: graphbrain/graphbrain
Commit Name: 3de1e0ce4269c1480b03080599f8321d002726e0
Time: 2019-07-20
Author: telmo@telmomenezes.net
File Name: graphbrain/tests/test_hypergraph.py
Class Name: TestHypergraph
Method Name: test_all


Project Name: graphbrain/graphbrain
Commit Name: 3de1e0ce4269c1480b03080599f8321d002726e0
Time: 2019-07-20
Author: telmo@telmomenezes.net
File Name: graphbrain/tests/test_hypergraph.py
Class Name: TestHypergraph
Method Name: test_edges