Implemented "SynthesizedGraph.TopologicalSort" with different approach