Package com.graphhopper.util
Class DepthFirstSearch
java.lang.Object
com.graphhopper.util.XFirstSearch
com.graphhopper.util.DepthFirstSearch
Implementation of depth first search (DFS) by LIFO queue
- Author:
- Peter Karich, Jan Sölter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
start
(EdgeExplorer explorer, int startNode) beginning with startNode add all following nodes to LIFO queue.Methods inherited from class com.graphhopper.util.XFirstSearch
checkAdjacent, createBitSet, goFurther
-
Constructor Details
-
DepthFirstSearch
public DepthFirstSearch()
-
-
Method Details
-
start
beginning with startNode add all following nodes to LIFO queue. If node has been already explored before, skip reexploration.- Specified by:
start
in classXFirstSearch
-