Example #1
0
 def test_edges(self):
     # Assert path of nodes to edges.
     g = self.g
     p = [g["a"], g["b"], g["d"], g["x"]]
     e = list(graph.edges(p))
     self.assertEqual(e, [g.edge("a", "b"), g.edge("b", "d"), None])
     print "pattern.graph.edges()"
Example #2
0
 def test_edges(self):
     # Assert path of nodes to edges.
     g = self.g
     p = [g["a"], g["b"], g["d"], g["x"]]
     e = list(graph.edges(p))
     self.assertEqual(e, [g.edge("a","b"), g.edge("b","d"), None])
     print "pattern.graph.edges()"