Class BridgePathFinder

java.lang.Object
com.graphhopper.routing.ch.BridgePathFinder

public class BridgePathFinder extends Object
Used to find 'bridge-paths' during edge-based CH preparation. Bridge-paths are paths that start and end at neighbor nodes of the node we like to contract without visiting any nodes other than that node. They can include loops at the node to be contracted. These are the paths that we might have to replace with shortcuts if no witness paths exist.
Author:
easbar
See Also:
  • EdgeBasedNodeContractor
  • Constructor Details

  • Method Details

    • find

      public com.carrotsearch.hppc.IntObjectMap<BridgePathFinder.BridePathEntry> find(int startInEdgeKey, int startNode, int centerNode)
      Finds all bridge paths starting at a given node and starting edge key.
      Returns:
      a mapping between the target edge keys we can reach via bridge paths and information about the corresponding bridge path