public int[] Dijkstra() { Node temp; int[] shortestPaths = new int[this.size()]; int path, newpath; PriorityQueue pq = new PriorityQueue(this.size()); for (int row=0; row