/**
  * Use for undo and redo update.
  *
  * @param history The index of the required version of the network to reload
  */
 public void updateHistoryData(int history) {
   HashMap<String, HashMap<Integer, SimulationElement>> original = new HashMap<>();
   original.putAll(networkHistory.get(history));
   original.putAll(transitHistory.get(history));
   currentNetwork.setNetworkElements(networkHistory.get(history));
   currentTransit.setTransits(transitHistory.get(history));
   dataReceiver.updateSimulationElements(original);
   simulationBox.updateRendering();
 }