private void mergeRegions(double alpha){
		for (int i = 0; i < this.denseRegions.size(); i++) {
			DenseRegion r1 = this.denseRegions.get(i);
			for (int j = 0; j < i; j++) {
				
				DenseRegion r2 = this.denseRegions.get(j);
				if(r1.getIsInCluster() && r2.getIsInCluster() && (r1.getClusterID() == r2.getClusterID())) continue;
				double connectivity = calculateConnectivityBetweenTwoRegions(r1, r2);
				if(connectivity >= alpha) mergeTwoRegions(r1, r2);
			}
		}
		
		for (int i = 0; i < this.denseRegions.size(); i++) {
			DenseRegion r = denseRegions.get(i);
			if (r.getIsInCluster()) continue;
			Cluster c = new Cluster(this.clustersCount);
			r.setClusterID(c.getID());
			c.addDenseRegion(r);
			this.clusters.add(c);
			clustersCount++;
		}
		
	}