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