private void init() {
myParent.updateGraph();
myGraph = myParent.getGraph();
this.layout = new ElasticLayout(myGraph, new ElasticLengthFunction());
layout.setForceMultiplier(SPRING_LAYOUT_FORCE_MULTIPLIER);
layout.initialize();
for (Object obj : myGraph.getVertices()) {
ElasticVertex vertex = (ElasticVertex) obj;