public void printNodeArray(ArrayList<Integer> nodes) {
		System.out.println();
		for (int i = 0; i < nodes.size(); i++) {
			System.out.print(" " + nodes.get(i).toString() + " ");
		}
		System.out.println();
	}