BridgeTheGap.java
//outputs 5 suggestions, one from each category
outputs 5 suggestions, one from each category
outputs 5 suggestions one from each category
public String[] finalOutput(){
		String[] suggestionArray = new String[5];
		ArrayList<Vertex> newList = Sorting();
		int avgDist = (newList.get(0).distance + newList.get(-1).distance)/2; 
		int number= avgDist%6;
		suggestionArray[0] = newList.get(number).name;
		suggestionArray[1] = newList.get(number + 7).name;
		suggestionArray[2] = newList.get(number + 14).name;
		suggestionArray[3] = newList.get(number + 21).name;
		suggestionArray[4] = newList.get(number + 28).name;
		return suggestionArray;
	}
public String [ ] finalOutput ( ) { String [ ] suggestionArray = new String [ 5 ] ; ArrayList < Vertex > newList = Sorting ( ) ; int avgDist = ( newList . get ( 0 ) . distance + newList . get ( - 1 ) . distance ) / 2 ; int number = avgDist % 6 ; suggestionArray [ 0 ] = newList . get ( number ) . name ; suggestionArray [ 1 ] = newList . get ( number + 7 ) . name ; suggestionArray [ 2 ] = newList . get ( number + 14 ) . name ; suggestionArray [ 3 ] = newList . get ( number + 21 ) . name ; suggestionArray [ 4 ] = newList . get ( number + 28 ) . name ; return suggestionArray ; }
outputs 5 suggestions, one from each category
outputs 5 suggestions one from each category
//smallest distance + largest distance) / 2