public class DijkstraBidirectionRef extends AbstractBidirAlgo
'Ref' stands for reference implementation and is using the normal Java-'reference'-way.
| Modifier and Type | Field and Description |
|---|---|
protected PathBidirRef |
bestPath |
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> |
bestWeightMapFrom |
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> |
bestWeightMapOther |
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> |
bestWeightMapTo |
protected SPTEntry |
currFrom |
protected SPTEntry |
currTo |
finishedFrom, finishedToflagEncoder, graph, inEdgeExplorer, maxVisitedNodes, nodeAccess, outEdgeExplorer, traversalMode, weighting| Constructor and Description |
|---|
DijkstraBidirectionRef(Graph graph,
Weighting weighting,
TraversalMode tMode) |
| Modifier and Type | Method and Description |
|---|---|
protected Path |
createAndInitPath() |
protected Path |
extractPath()
To be overwritten from extending class.
|
boolean |
fillEdgesFrom() |
boolean |
fillEdgesTo() |
boolean |
finished()
To be overwritten from extending class.
|
protected double |
getCurrentFromWeight() |
protected double |
getCurrentToWeight() |
String |
getName() |
protected void |
initCollections(int size) |
void |
initFrom(int from,
double weight) |
void |
initTo(int to,
double weight) |
protected void |
setUpdateBestPath(boolean b) |
protected void |
updateBestPath(EdgeIteratorState edgeState,
SPTEntry entryCurrent,
int traversalId) |
calcPath, getVisitedNodes, runAlgoaccept, calcPaths, checkAlreadyRun, createEmptyPath, createSPTEntry, isMaxVisitedNodesExceeded, setEdgeFilter, setMaxVisitedNodes, toStringprotected com.carrotsearch.hppc.IntObjectMap<SPTEntry> bestWeightMapFrom
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> bestWeightMapTo
protected com.carrotsearch.hppc.IntObjectMap<SPTEntry> bestWeightMapOther
protected SPTEntry currFrom
protected SPTEntry currTo
protected PathBidirRef bestPath
public DijkstraBidirectionRef(Graph graph, Weighting weighting, TraversalMode tMode)
protected void initCollections(int size)
public void initFrom(int from,
double weight)
public void initTo(int to,
double weight)
protected Path createAndInitPath()
createAndInitPath in class AbstractBidirAlgoprotected Path extractPath()
AbstractRoutingAlgorithmextractPath in class AbstractRoutingAlgorithmprotected double getCurrentFromWeight()
getCurrentFromWeight in class AbstractBidirAlgoprotected double getCurrentToWeight()
getCurrentToWeight in class AbstractBidirAlgopublic boolean fillEdgesFrom()
public boolean fillEdgesTo()
public boolean finished()
AbstractRoutingAlgorithmfinished in class AbstractRoutingAlgorithmprotected void updateBestPath(EdgeIteratorState edgeState, SPTEntry entryCurrent, int traversalId)
updateBestPath in class AbstractRoutingAlgorithmprotected void setUpdateBestPath(boolean b)
public String getName()
getName in interface RoutingAlgorithmgetName in class AbstractRoutingAlgorithmCopyright © 2012–2018. All rights reserved.