modify SimulationGraph2.java