public class DijkstraBidirectionRef extends AbstractNonCHBidirAlgo
'Ref' stands for reference implementation and is using the normal Java-'reference'-way.
additionalEdgeFilter, edgeExplorer, flagEncoder, graph, inEdgeFilter, outEdgeFilter, weighting
bestBwdEntry, bestFwdEntry, bestWeight, bestWeightMapFrom, bestWeightMapOther, bestWeightMapTo, currFrom, currTo, finishedFrom, finishedTo, from, fromOutEdge, maxVisitedNodes, nodeAccess, to, toInEdge, traversalMode, updateBestPath
Constructor and Description |
---|
DijkstraBidirectionRef(Graph graph,
Weighting weighting,
TraversalMode tMode) |
Modifier and Type | Method and Description |
---|---|
protected SPTEntry |
createEntry(EdgeIteratorState edge,
int incEdge,
double weight,
SPTEntry parent,
boolean reverse)
Creates a new entry of the shortest path tree (a
SPTEntry or one of its subclasses) during a dijkstra
expansion. |
protected SPTEntry |
createStartEntry(int node,
double weight,
boolean reverse)
Creates the root shortest path tree entry for the forward or backward search.
|
String |
getName() |
protected SPTEntry |
getParent(SPTEntry entry) |
accept, accept, calcWeight, createEmptyPath, createPathExtractor, extractPath, fillEdgesFromUsingFilter, fillEdgesToUsingFilter, getInEdgeWeight, getOrigEdgeId, getOtherNode, getTraversalId, postInitFrom, postInitTo, toString, updateEntry
bwdSearchCanBeStopped, calcPath, calcPath, calcPaths, checkAlreadyRun, finished, fromEntryCanBeSkipped, fwdSearchCanBeStopped, getCurrentFromWeight, getCurrentToWeight, getIncomingEdge, getVisitedNodes, initCollections, initFrom, initTo, isMaxVisitedNodesExceeded, postInit, runAlgo, setMaxVisitedNodes, setUpdateBestPath, toEntryCanBeSkipped, updateBestPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calcPath
calcPath, calcPaths, getVisitedNodes, setMaxVisitedNodes
public DijkstraBidirectionRef(Graph graph, Weighting weighting, TraversalMode tMode)
protected SPTEntry createStartEntry(int node, double weight, boolean reverse)
AbstractBidirAlgo
createStartEntry
in class AbstractBidirAlgo
protected SPTEntry createEntry(EdgeIteratorState edge, int incEdge, double weight, SPTEntry parent, boolean reverse)
AbstractNonCHBidirAlgo
SPTEntry
or one of its subclasses) during a dijkstra
expansion.createEntry
in class AbstractNonCHBidirAlgo
edge
- the edge that is currently processed for the expansionincEdge
- the id of the edge that is incoming to the node the edge is pointed at. usually this is the same as
edge.getEdge(), but for edge-based CH and in case edge is a shortcut incEdge is the original edge
that is incoming to the nodeweight
- the weight the shortest path three entry should carryparent
- the parent entry of in the shortest path treereverse
- true if we are currently looking at the backward search, false otherwisepublic String getName()
getName
in interface RoutingAlgorithm
getName
in class AbstractBidirAlgo
Copyright © 2012–2020. All rights reserved.