Class DepthFirstSearch

java.lang.Object
com.graphhopper.util.XFirstSearch
com.graphhopper.util.DepthFirstSearch

public abstract class DepthFirstSearch extends XFirstSearch
Implementation of depth first search (DFS) by LIFO queue
Author:
Peter Karich, Jan Sölter
  • Constructor Details

    • DepthFirstSearch

      public DepthFirstSearch()
  • Method Details

    • start

      public void start(EdgeExplorer explorer, int startNode)
      beginning with startNode add all following nodes to LIFO queue. If node has been already explored before, skip reexploration.
      Specified by:
      start in class XFirstSearch