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

Method setUp

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

Source from the content-addressed store, hash-verified

326class TestGraphLayout(unittest.TestCase):
327
328 def setUp(self):
329 # Create test graph.
330 self.g = graph.Graph(layout=graph.SPRING, distance=10.0)
331 self.g.add_node("a")
332 self.g.add_node("b")
333 self.g.add_node("c")
334 self.g.add_edge("a", "b")
335 self.g.add_edge("b", "c")
336
337 def test_layout(self):
338 # Assert GraphLayout properties.

Callers

nothing calls this directly

Calls 2

add_nodeMethod · 0.45
add_edgeMethod · 0.45

Tested by

no test coverage detected