public class Dijkstra extends AbstractRoutingAlgorithm
| Modifier and Type | Field and Description |
|---|---|
protected SPTEntry |
currEdge |
protected PriorityQueue<SPTEntry> |
fromHeap |
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> |
fromMap |
additionalEdgeFilter, flagEncoder, graph, inEdgeExplorer, maxVisitedNodes, nodeAccess, outEdgeExplorer, traversalMode, weighting| Constructor and Description |
|---|
Dijkstra(Graph graph,
Weighting weighting,
TraversalMode tMode) |
| Modifier and Type | Method and Description |
|---|---|
Path |
calcPath(int from,
int to)
Calculates the best path between the specified nodes.
|
protected Path |
extractPath()
To be overwritten from extending class.
|
protected boolean |
finished()
To be overwritten from extending class.
|
String |
getName() |
int |
getVisitedNodes()
Returns the visited nodes after searching.
|
protected void |
initCollections(int size) |
protected void |
runAlgo() |
protected void |
updateBestPath(EdgeIteratorState edgeState,
SPTEntry bestSPTEntry,
int traversalId) |
accept, calcPaths, checkAlreadyRun, createEmptyPath, isMaxVisitedNodesExceeded, setEdgeFilter, setMaxVisitedNodes, toStringprotected com.carrotsearch.hppc.IntObjectMap<SPTEntry> fromMap
protected PriorityQueue<SPTEntry> fromHeap
protected SPTEntry currEdge
public Dijkstra(Graph graph, Weighting weighting, TraversalMode tMode)
protected void initCollections(int size)
public Path calcPath(int from, int to)
RoutingAlgorithmprotected void runAlgo()
protected boolean finished()
AbstractRoutingAlgorithmfinished in class AbstractRoutingAlgorithmprotected Path extractPath()
AbstractRoutingAlgorithmextractPath in class AbstractRoutingAlgorithmpublic int getVisitedNodes()
RoutingAlgorithmprotected void updateBestPath(EdgeIteratorState edgeState, SPTEntry bestSPTEntry, int traversalId)
public String getName()
getName in interface RoutingAlgorithmgetName in class AbstractRoutingAlgorithmCopyright © 2012–2019. All rights reserved.