public void pushNodeToStack(int startid) {

		Node tempNode = nodes[startid - 1];
		System.out.println("" + startid + "ΪĽڵĽڵ㿪ʼȽջ!");
		while (!tempNode.isVisited()) {
			stack.push(tempNode);
			makeSpecifyNodeTrue(startid, nodes);
			if (tempNode.getNextNode() != null) {
				tempNode = tempNode.getNextNode();
				while (tempNode.isVisited()) {
					if (tempNode.getNextNode() != null) {
						tempNode = tempNode.getNextNode();
					} else {// ִгջеĻ·Ϣ̨
						System.out.println("ջϣʼջ");
						break;
					}
				}
				startid = tempNode.getId();
				tempNode = nodes[startid - 1];// pushNodeToStack(startid);
			}
		}

		System.out.println("ջĵһԪأ-->" + stack.firstElement().getId());
		System.out.println("ջһԪأ-->" + stack.lastElement().getId());
		if (!stack.isEmpty()) {
			int size = stack.size();
			// ջ֮ǰýڵǷѾȫʣ
			// examPopNodeLinkVisited(popNode);
			if (size >= 3) {
				findRecycleRoutine(stack);// Ѱɳջջڵĵ㹹ɵĻ·
				stack.clear();// Ѱϣ
			} else {
				// ջգʹ´νջʱ
				stack.clear();
			}
		} else {
			System.out.println("ջûԪأ");
		}
	}