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