Package com.graphhopper.routing
Class AlternativeRouteCH
java.lang.Object
com.graphhopper.routing.AbstractBidirAlgo
com.graphhopper.routing.AbstractBidirCHAlgo
com.graphhopper.routing.DijkstraBidirectionCHNoSOD
com.graphhopper.routing.AlternativeRouteCH
- All Implemented Interfaces:
EdgeToEdgeRoutingAlgorithm,RoutingAlgorithm
Minimum number-of-moving-parts implementation of alternative route search with
contraction hierarchies.
"Alternative Routes in Road Networks" (Abraham et al.)
- Author:
- michaz
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class com.graphhopper.routing.AbstractBidirCHAlgo
graph, inEdgeExplorer, levelEdgeFilter, nodeAccess, outEdgeExplorerFields inherited from class com.graphhopper.routing.AbstractBidirAlgo
bestBwdEntry, bestFwdEntry, bestWeight, bestWeightMapFrom, bestWeightMapOther, bestWeightMapTo, currFrom, currTo, finishedFrom, finishedTo, from, fromOutEdge, maxVisitedNodes, timeoutMillis, to, toInEdge, traversalMode, updateBestPath -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.graphhopper.routing.DijkstraBidirectionCHNoSOD
createEntry, createStartEntry, getName, getParentMethods inherited from class com.graphhopper.routing.AbstractBidirCHAlgo
accept, calcWeight, calcWeight, createEmptyPath, extractPath, fillEdgesFromUsingFilter, fillEdgesToUsingFilter, getInEdgeWeight, initCollections, postInitFrom, postInitTo, setPathExtractorSupplier, toString, updateEntryMethods inherited from class com.graphhopper.routing.AbstractBidirAlgo
bwdSearchCanBeStopped, calcPath, calcPath, checkAlreadyRun, fromEntryCanBeSkipped, fwdSearchCanBeStopped, getCurrentFromWeight, getCurrentToWeight, getIncomingEdge, initFrom, initTo, isMaxVisitedNodesExceeded, isTimeoutExceeded, postInit, runAlgo, setMaxVisitedNodes, setTimeoutMillis, setUpdateBestPath, setupFinishTime, toEntryCanBeSkipped, updateBestPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.graphhopper.routing.EdgeToEdgeRoutingAlgorithm
calcPathMethods inherited from interface com.graphhopper.routing.RoutingAlgorithm
calcPath, setMaxVisitedNodes, setTimeoutMillis
-
Constructor Details
-
AlternativeRouteCH
-
-
Method Details
-
finished
public boolean finished()- Overrides:
finishedin classAbstractBidirCHAlgo
-
getVisitedNodes
public int getVisitedNodes()Description copied from interface:RoutingAlgorithmReturns the visited nodes after searching. Useful for debugging.- Specified by:
getVisitedNodesin interfaceRoutingAlgorithm- Overrides:
getVisitedNodesin classAbstractBidirAlgo
-
calcPaths
Description copied from interface:RoutingAlgorithmCalculates multiple possibilities for a path.- Specified by:
calcPathsin interfaceRoutingAlgorithm- Overrides:
calcPathsin classAbstractBidirAlgo- See Also:
-