Exemplo n.º 1
0
 def test_topsort(self):
     res = top_sort_recursive(self.depGraph)
     #print(res)
     self.assertTrue(res.index('g') < res.index('e'))
     res = top_sort(self.depGraph)
     self.assertTrue(res.index('g') < res.index('e'))
Exemplo n.º 2
0
 def test_topsort(self):
     res = top_sort_recursive(self.depGraph)
     #print(res)
     self.assertTrue(res.index('g') < res.index('e'))
     res = top_sort(self.depGraph)
     self.assertTrue(res.index('g') < res.index('e'))