Beispiel #1
0
 def test_insert(self):
     g = graph.Graph()
     g.add_edge("a", "b")
     g.add_node("c")
     graph.insert(g, g["c"], g["a"], g["b"])
     self.assertTrue(g.edge("a", "b") is None)
     self.assertTrue(g.edge("a", "c") is not None)
     self.assertTrue(g.edge("c", "b") is not None)
     print "pattern.graph.insert()"
Beispiel #2
0
 def test_insert(self):
     g = graph.Graph()
     g.add_edge("a", "b")
     g.add_node("c")
     graph.insert(g, g["c"], g["a"], g["b"])
     self.assertTrue(g.edge("a","b") is None)
     self.assertTrue(g.edge("a","c") is not None)
     self.assertTrue(g.edge("c","b") is not None)
     print "pattern.graph.insert()"