Topological Sorting In Graphical Method