Update Topological Sort - 1