void drawDottedLine(float startX,float startY,float endX, float endY){
    	 //Relative Length Dashes
    	  /**int numSegments = 5;
    	  float interval = 0.2f;    	  
    	  float interpX,interpY,interpolation=0,prevX=startX,prevY=startY;   
    	  
    	  for (int i=0;i<numSegments;i++){
    		  
    		  interpX = (endX - startX)*interpolation + startX;
    		  interpY = startY +(endY-startY)*((interpX-startX)/(endX-startX)); 
    		  if (i%2==0){     			  
    			  parent.line(prevX,prevY,interpX,interpY);
    		  }   		  
    		  
    		  interpolation +=interval;
    		  prevX = interpX;
    		  prevY = interpY; 
    	  }*/
    	  //Fixed length dashes (doesn't draw anything for nodes that are too close)
    	  float desiredDashLength = 4.0f;
    	  float segmentLength = parent.dist(startX,startY,endX,endY);   
    	  
    	  if (segmentLength<=8.0f) { //If edge is too short, just draw a solid line for now
    		  parent.line(startX,startY,endX,endY);
    		  return;    		  
    	  }
    	  
    	  float interval = desiredDashLength/segmentLength;
          //System.out.println(interval+" segment "+segmentLength);
    	  
          float interpX,interpY,interpolation=0,prevX=startX,prevY=startY; 
    	  int i=0;
    	  while (interpolation <= 1){
    		  interpX = (endX - startX)*interpolation + startX;
    		  interpY = startY +(endY-startY)*((interpX-startX)/(endX-startX)); 
    		  if (i%2==0){     			  
    			  parent.line(prevX,prevY,interpX,interpY);    			  
    		  }   	   		  
    		  interpolation +=interval;
    		  i++;
    		  prevX = interpX;
    		  prevY = interpY; 
    	  }    	 
      }