public int getFarthestNodeIndexFromNodeIndex(int fromNodeIndex,int[] targetNodeIndices,DM distanceMeasure)
	{
		double maxDistance=Integer.MIN_VALUE;
		int target=-1;
		
		for(int i=0;i<targetNodeIndices.length;i++)
		{				
			double distance=0;
			
			distance=getDistance(targetNodeIndices[i],fromNodeIndex,distanceMeasure);
					
			if(distance>maxDistance)
			{
				maxDistance=distance;
				target=targetNodeIndices[i];	
			}
		}
		
		return target;
	}