Java是否有索引的最低优先级队列?

问题描述:

我需要它来实现Dijkstra的算法,并且确实有我自己的实现,但是使用Java自己的类对我的代码进行文档记录会更容易。

I need it for an implementation of Dijkstra's algorithm, and I do have my own implementation but documenting my code would be easier with java's own classes.

否,Java标准库没有这样的数据结构。
我想大多数人都使用这个:
http:// algs4.cs.princeton.edu/24pq/IndexMinPQ.java.html

No, Java standard library has no such data structure. I think most people use this: http://algs4.cs.princeton.edu/24pq/IndexMinPQ.java.html