示例#1
0
class SimpleGraphTest(AbstractGraphTest, unittest.TestCase):

    def setUp(self):
        self.graph = SimpleGraph()
        self.a = self.graph.add_node()
        self.b = self.graph.add_node()
        self.ab = self.graph.add_edge(self.a, self.b)
示例#2
0
 def setUp(self):
     self.graph = SimpleGraph()
     self.a = self.graph.add_node()
     self.b = self.graph.add_node()
     self.ab = self.graph.add_edge(self.a, self.b)