public static void main(String[] args){
		mutuallyExclusiveGroupFinder myFinder = new mutuallyExclusiveGroupFinder("Rcohere.xls");
		int[][] temp = myFinder.findGroups(0);
		ExcelWriter myWriter = new ExcelWriter();
		//myWriter.tableIntWriter(temp, "mutuallyExclusiveGroups.xls");
		
		int n = 0;
		for(int i = 0 ; i < temp.length; i++){
			if(temp[i][0] == 16 || temp[i][1] == 16){
				n+=1;
			}
		}
		System.out.println(n);
		
		Hashtable<Integer, Integer> keeper = new Hashtable<Integer, Integer>(); // checks for same relationships a -> b && b -> a
		int[][] tempCount = new int[60][2];
		for(int i = 0 ; i < tempCount.length; i++){
			tempCount[i][0] = i;
			tempCount[i][1] = 0;
		}
		for(int i = 0 ; i < temp.length; i++){
			if(keeper.contains(temp[i][0])){
				if(!(keeper.get(temp[i][0]) == temp[i][1])){
					tempCount[temp[i][0]][1] += 1;
					tempCount[temp[i][1]][1] += 1;
				}
			} else{
				tempCount[temp[i][0]][1] += 1;
				tempCount[temp[i][1]][1] += 1;
				keeper.put(temp[i][0], temp[i][1]);
				keeper.put(temp[i][1], temp[i][0]);
			}
		}
		myWriter.tableIntWriter(tempCount, "mutuallyExclusiveGroupCount.xls");
	}