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

Method setUp

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

Source from the content-addressed store, hash-verified

116class TestEdge(unittest.TestCase):
117
118 def setUp(self):
119 # Create test graph.
120 self.g = graph.Graph()
121 self.g.add_node("a")
122 self.g.add_node("b")
123 self.g.add_edge("a", "b", weight=0.0, length=1.0, type="is-a", stroke=(0,0,0,1), strokewidth=1)
124
125 def test_edge(self):
126 # Assert edge properties.

Callers

nothing calls this directly

Calls 2

add_nodeMethod · 0.45
add_edgeMethod · 0.45

Tested by

no test coverage detected