Added order to GraphNodes. This is a quick fix. Later we should use root nodes.