mxParallelEdgeLayout.prototype.layout=function(a){var b=a[0],c=this.graph.getView(),d=this.graph.getModel(),e=d.getGeometry(c.getVisibleTerminal(b,!0));d=d.getGeometry(c.getVisibleTerminal(b,!1));if(e==d){b=e.x+e.width+this.spacing;c=e.y+e.height/2;for(var f=0;f<a.length;f++)this.route(a[f],b,c),b+=this.spacing}else if(null!=e&&null!=d){b=e.x+e.width/2;c=e.y+e.height/2;f=d.x+d.width/2-b;var g=d.y+d.height/2-c;d=Math.sqrt(f*f+g*g);if(0<d)for(e=g*this.spacing/d,d=f*this.spacing/d,b=b+f/2+e*(a.length-