(String[] args)
| 19 | }; |
| 20 | |
| 21 | public static void main(String[] args) { |
| 22 | /* Simple Dijkstra */ |
| 23 | Dijkstra d = new Dijkstra(7); |
| 24 | for (int[] w : weights) d.setGraph(w[0], w[1], w[2]); |
| 25 | // d.printGraph(); |
| 26 | d.getShortestDistance(1); |
| 27 | |
| 28 | /* Improved Dijkstra */ |
| 29 | ImprovedDijkstra d2 = new ImprovedDijkstra(7); |
| 30 | for (int[] w : weights) d2.setGraph(w[0], w[1], w[2]); |
| 31 | // d2.printGraph(); |
| 32 | d2.getShortestDistance(1); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | class Dijkstra { |
nothing calls this directly
no test coverage detected