Esempio 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'))
Esempio 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'))