public void showDists() {
		for (int i=0; i<nodes.length; i++) {
			for (int j = 0; j<nodes.length; j++) {
				if (dists[i][j]>0) System.out.println(nodes[i]+"->"+nodes[j]+": "+dists[i][j]);
			}
		}
	}