MCPcopy Index your code
hub / github.com/clips/pattern / test_edges

Method test_edges

test/test_graph.py:440–446  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

438 print "pattern.graph.paths()"
439
440 def test_edges(self):
441 # Assert path of nodes to edges.
442 g = self.g
443 p = [g["a"], g["b"], g["d"], g["x"]]
444 e = list(graph.edges(p))
445 self.assertEqual(e, [g.edge("a","b"), g.edge("b","d"), None])
446 print "pattern.graph.edges()"
447
448 def test_adjacency(self):
449 # Assert adjacency map with different settings.

Callers

nothing calls this directly

Calls 2

edgesMethod · 0.80
edgeMethod · 0.45

Tested by

no test coverage detected