public String[] path(String vertex) {
		int N = pathLength(vertex);
		String[] p = new String[N + 1];
		for (int i = 0; i <= N; i++) {
			p[i] = vertex;
			vertex = (String) visited.get(vertex);
		}
		return p;
	}