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