Esempio n. 1
0
 def test_add_vertices(self):
     vertices = [1, 2, 3, 4, 5]
     g = Graph(vertices)
     h = Graph()
     h.add_vertices(vertices)
     self.assertSparseGraphEqual(g.as_sparse_graph(), h.as_sparse_graph())