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

Method printGraph

contents/algorithm/code/DijkstraTest.java:130–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 }
129
130 public void printGraph() {
131 for (int i = 1; i <= N; i++) {
132 for (Node n : graph[i]) {
133 System.out.println(i + " --" + n.distance + "--> " + n.index);
134 }
135 }
136 }
137
138 public void getShortestDistance(int S) {
139 PriorityQueue<Node> pq = new PriorityQueue<>(((o1, o2) -> o1.distance - o2.distance));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected