MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / compare

Method compare

modifiedGraphEdges.java:59–61  ·  view source on GitHub ↗
(int a[], int b[])

Source from the content-addressed store, hash-verified

57 // [u,w] (node, weight to node)
58 PriorityQueue<int[]> queue = new PriorityQueue<>(new Comparator<int[]>(){
59 public int compare(int a[], int b[]){
60 return a[1] - b[1];
61 }
62 });
63
64 Arrays.fill(minDistance, INF);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected