Temporary implementation of "SynthesizedGraph.TopologicalSort"