int [] selectNode(int view,boolean selectedDisappeared){
    	  Integer p = this.persistence.get(view);
    	  //TODO:Quick fix for allowing nodes that have disappeared but are part of a query can be selected, refactor this later
    	  if (p==1 && parent.mousePressed && parent.dist(this.x,this.y,parent.mouseX,parent.mouseY)<=(RADIUS/2)){  //Clicking directly on a node  			    		 
    		  return new int [] {this.id,1};
    	  } else if (selectedDisappeared  && parent.mousePressed && parent.dist(this.x,this.y,parent.mouseX,parent.mouseY)<=(RADIUS/2)){
    		  return new int [] {this.id,1};
    	  }    	  
    	  /**else if (coord !=null && parent.mousePressed && parent.dist(coord.x,coord.y,parent.mouseX,parent.mouseY)<=(RADIUS/2)+MAX_WEIGHT){  //Drawing around a node or clicking near it  			    		 
    		  return new int [] {this.id,2};
    	  } */  	 
    	  return new int [] {-1,-1};
      }