Use LinkedHashMap so that the topological sort will process the nodes in the same order of collecting
Merge pull request #497 from Dao007forever/master

Use LinkedHashMap so that the topological sort will process the nodes in the same order.