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

Method setUp

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

Source from the content-addressed store, hash-verified

559class TestGraphPartitioning(unittest.TestCase):
560
561 def setUp(self):
562 # Create test graph.
563 self.g = graph.Graph()
564 self.g.add_edge("a", "b", weight=0.5)
565 self.g.add_edge("a", "c")
566 self.g.add_edge("b", "d")
567 self.g.add_edge("d", "e")
568 self.g.add_edge("x", "y")
569 self.g.add_node("z")
570
571 def test_union(self):
572 self.assertEqual(graph.union([1,2],[2,3]), [1,2,3])

Callers

nothing calls this directly

Calls 2

add_edgeMethod · 0.45
add_nodeMethod · 0.45

Tested by

no test coverage detected