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

Method setUp

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

Source from the content-addressed store, hash-verified

140class TestGraph(unittest.TestCase):
141
142 def setUp(self):
143 # Create test graph.
144 self.g = graph.Graph(layout=graph.SPRING, distance=10.0)
145 self.g.add_node("a")
146 self.g.add_node("b")
147 self.g.add_node("c")
148 self.g.add_edge("a", "b")
149 self.g.add_edge("b", "c")
150
151 def test_graph(self):
152 # Assert graph properties.

Callers

nothing calls this directly

Calls 2

add_nodeMethod · 0.45
add_edgeMethod · 0.45

Tested by

no test coverage detected