Removed a lot of moved all the graph structure generation from globalMethod.js to generateGraphStructure.js