public Node[] makeAllNodesFalse(Node[] nodes) {

		int size = nodes.length;

		for (int i = 0; i < size; i++) {
			Node tempNode = nodes[i];
			while (tempNode.getNextNode() != null) {
				tempNode.setVisited(false);
				tempNode = tempNode.getNextNode();
			}
			tempNode.setVisited(false);
		}
		return nodes;
	}