@SuppressWarnings("unchecked")
	public static void main(String[] args) throws IOException {

		// ȡļļеĶάתΪά飻
		String filePath = "D:/javaFileInput/topology.txt";// ָȡļ·
		InterfaceFileOperator fileOperation = new FileOperation();
		List<String> list = (List<String>) fileOperation
				.readDataFromFile(filePath);
		String[][] metrix = fileOperation.getTwoDimensionalMatrix(list);
		fileOperation.printMetrix(metrix);
		System.out.println();

		int size = metrix.length;
		NodeLink nodeLink = new NodeLink(size);
		Node[] nodes = nodeLink.initialNodeLink(metrix);

		nodeLink.makeAllNodesFalse(nodes);

		for (int i = 1; i < size + 1; i++) {
			nodeLink.pushNodeToStack(i);
			nodeLink.makeAllNodesFalse(nodes);
		}
		nodeLink.printNodeLinkInfo(nodes);
		System.out.println(nodeLink.getNumber());
	}