Topological Sort Using Decrease Size Of Pdf