Decrease And Conquer Topological Sort Bfs Algorithm In Python