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

Method test_insert

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

Source from the content-addressed store, hash-verified

644 print "pattern.graph.cut()"
645
646 def test_insert(self):
647 g = graph.Graph()
648 g.add_edge("a", "b")
649 g.add_node("c")
650 graph.insert(g, g["c"], g["a"], g["b"])
651 self.assertTrue(g.edge("a","b") is None)
652 self.assertTrue(g.edge("a","c") is not None)
653 self.assertTrue(g.edge("c","b") is not None)
654 print "pattern.graph.insert()"
655
656#---------------------------------------------------------------------------------------------------
657

Callers

nothing calls this directly

Calls 4

add_edgeMethod · 0.95
add_nodeMethod · 0.95
edgeMethod · 0.95
insertMethod · 0.45

Tested by

no test coverage detected