public double[] getNormalizedCentrality(String fileName, int centralityMode) {
		double[] result;

		if (centralityMode == 0) {
			result = getCentrality(fileName, 0);
		} else if (centralityMode == 1) {
			result = getCentrality(fileName, 1);
		} else if (centralityMode == 2) {
			result = getCentrality(fileName, 2);
		} else {
			System.err.println("This centrality mode doesn't exist.");
			return null;
		}

		// Normalize the centrality scores to be between 0 and 1
		double min = Double.MAX_VALUE, max = Double.MIN_VALUE;
		for (double c : result) {
			if (min > c)
				min = c;
			if (max < c)
				max = c;
		}
		for (int i = 0; i < result.length; i++) {
			result[i] = (result[i] - min) / (max - min);
		}

		return result;
	}