MCPcopy Create free account
hub / github.com/Seogeurim/CS-study / main

Method main

contents/algorithm/code/DijkstraTest.java:21–33  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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
36class Dijkstra {

Callers

nothing calls this directly

Calls 4

setGraphMethod · 0.95
getShortestDistanceMethod · 0.95
setGraphMethod · 0.95
getShortestDistanceMethod · 0.95

Tested by

no test coverage detected