public void createLayout (double r, double a, int it,int w, int h){    	 
   	 //Create the JUNG layout and set some parameters
   	 this.layout = new FRLayout <Integer,Edge>(this.graph); 
   	 this.layout.setRepulsionMultiplier(r);
   	 this.layout.setAttractionMultiplier(a);
     this.layout.setMaxIterations(it);  
     this.layout.setSize(new Dimension(w,h));
	 
     while (!this.layout.done()){ //Keep applying the FR algorithm until max iterations reached
	     this.layout.step();
	  }	
    }