Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. PriorityQueue<Edge> Q = new PriorityQueue<>(new Comparator<Edge>() {
  2. @Override
  3. public int compare(Edge val1, Edge val2) {
  4. return val1.cost.compareTo(val2.cost);
  5. }
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement