How can I create a JGraphT ClosestFirstIterator that uses a custom heap? - Stack Overflow

The type of the heapSupplier-parameter in the constructor of .jgrapht.traverse.ClosestFirstIterator mak

The type of the heapSupplier-parameter in the constructor of .jgrapht.traverse.ClosestFirstIterator makes reference to the package-private class QueueEntry. So how can I ever hope to pass a heap supplier to the constructor?

    public ClosestFirstIterator(
        Graph<V, E> g, V startVertex, double radius,
        Supplier<AddressableHeap<Double, QueueEntry<V, E>>> heapSupplier)

I would like to use a custom heap so as to make the traversal more deterministic, by passing a heap implementation that respects the insertion order for elements with the same key (distance from the start vertex).

Is that a bug or am I missing something?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744414387a4573042.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信