|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.graphalgo.impl.shortestpath.DijkstraPriorityQueueFibonacciImpl<CostType>
CostType - The datatype the path weights are represented by.public class DijkstraPriorityQueueFibonacciImpl<CostType>
Implementation of DijkstraPriorityQueue using a FibonacciHeap
| Nested Class Summary | |
|---|---|
protected class |
DijkstraPriorityQueueFibonacciImpl.HeapObject
Data structure used for the internal priority heap |
| Constructor Summary | |
|---|---|
DijkstraPriorityQueueFibonacciImpl(Comparator<CostType> costComparator)
|
|
| Method Summary | |
|---|---|
void |
decreaseValue(Node node,
CostType newValue)
Used to update a value in the queue (or insert it). |
Node |
extractMin()
Retrieve and remove the node with the most optimal value. |
void |
insertValue(Node node,
CostType value)
Used to insert a new value into the queue. |
boolean |
isEmpty()
|
Node |
peek()
Retrieve without removing the node with the most optimal value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DijkstraPriorityQueueFibonacciImpl(Comparator<CostType> costComparator)
| Method Detail |
|---|
public void decreaseValue(Node node,
CostType newValue)
DijkstraPriorityQueue
decreaseValue in interface DijkstraPriorityQueue<CostType>public Node extractMin()
DijkstraPriorityQueue
extractMin in interface DijkstraPriorityQueue<CostType>
public void insertValue(Node node,
CostType value)
DijkstraPriorityQueue
insertValue in interface DijkstraPriorityQueue<CostType>public boolean isEmpty()
isEmpty in interface DijkstraPriorityQueue<CostType>public Node peek()
DijkstraPriorityQueue
peek in interface DijkstraPriorityQueue<CostType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||