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 |
edgeExplorer, flagEncoder, graph, inEdgeFilter, maxVisitedNodes, nodeAccess, outEdgeFilter, 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, setMaxVisitedNodes, toString
protected 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)
RoutingAlgorithm
protected void runAlgo()
protected boolean finished()
AbstractRoutingAlgorithm
finished
in class AbstractRoutingAlgorithm
protected Path extractPath()
AbstractRoutingAlgorithm
extractPath
in class AbstractRoutingAlgorithm
public int getVisitedNodes()
RoutingAlgorithm
protected void updateBestPath(EdgeIteratorState edgeState, SPTEntry bestSPTEntry, int traversalId)
public String getName()
getName
in interface RoutingAlgorithm
getName
in class AbstractRoutingAlgorithm
Copyright © 2012–2020. All rights reserved.