|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
CostType - The datatype the path weigths are represented by.public interface DijkstraPriorityQueue<CostType>
Abstraction of the priority queue used by Dijkstra in order to make (testing of) alternative implementations easier.
| 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. |
| Method Detail |
|---|
void insertValue(Node node,
CostType value)
node - value -
void decreaseValue(Node node,
CostType newValue)
node - newValue - Node extractMin()
Node peek()
boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||