public void showGlobalPersistence(){
    	 ArrayList<Integer> edgesToHighlight = findIncidentEdgesToHighlight();
    	     			 
    	 for (int i = 0;i<this.edges.size();i++){   		      
	   		   if (this.aggregatedNodes.size()>0){ //Highlight incident edges of selected nodes
	   			   if (edgesToHighlight.contains(i)){	   				  
	   				  this.edges.get(i).drawGlobalPersistenceHighlights(this.nodes,-1,true,1); 
	   			   }else{
	   				  this.edges.get(i).drawGlobalPersistenceHighlights(this.nodes,-1,true,0.2f);  
	   			   }
	   		   }else if (this.aggregatedEdges.size()>0){ //Highlight selected, aggregated edges
	   			  int found = findEdge(this.aggregatedEdges,this.edges.get(i));
	   			  if (found!=-1){
	   				this.edges.get(i).drawGlobalPersistenceHighlights(this.nodes,-1,true,1); 
	   			  }else{
	   				this.edges.get(i).drawGlobalPersistenceHighlights(this.nodes,-1,true,0.2f);  
	   			  }
	   		   }else{ //Highlight all edges
	   			  this.edges.get(i).drawGlobalPersistenceHighlights(this.nodes,-1,true,1); 
	   		   }	       	
	     }   	 
    	 
	   	 for (int i = 0;i<this.nodes.size();i++){
	   		 if (this.aggregatedNodes.size()>0){ //Highlight selected, aggregated nodes
	   			if (this.aggregatedNodes.contains(i)){
	   				this.nodes.get(i).drawGlobalPersistenceHighlights(-1,true,1,this.globalMaxDegree);	   				 
	   			}else{
	   				this.nodes.get(i).drawGlobalPersistenceHighlights(-1,true,0.2f,this.globalMaxDegree);	   				
	   			}	   			
	   		 }else if (this.aggregatedEdges.size()>0){//Fade all but the nodes connected to selected edges
	   			boolean found = findNodeInEdges(this.aggregatedEdges,i);
	   			if (found){
	   				this.nodes.get(i).drawGlobalPersistenceHighlights(-1,true,1,this.globalMaxDegree);	   
	   			}else{
	   				this.nodes.get(i).drawGlobalPersistenceHighlights(-1,true,0.2f,this.globalMaxDegree);	   
	   			}	   						 
	   		 }else{ //Highlight all nodes
	   			this.nodes.get(i).drawGlobalPersistenceHighlights(-1,true,1,this.globalMaxDegree);	   			
	   		 } 		   
	   		 
	   	  }     				 
     }