Reformat parseModule.
Doing a topSort after the graph in one step.