Class DijkstraBidirectionRef

All Implemented Interfaces:
EdgeToEdgeRoutingAlgorithm, RoutingAlgorithm

public class DijkstraBidirectionRef extends AbstractNonCHBidirAlgo
Calculates best path in bidirectional way.

'Ref' stands for reference implementation and is using the normal Java-'reference'-way.

Author:
Peter Karich
  • Constructor Details

  • Method Details

    • createStartEntry

      protected SPTEntry createStartEntry(int node, double weight, boolean reverse)
      Description copied from class: AbstractBidirAlgo
      Creates the root shortest path tree entry for the forward or backward search.
      Specified by:
      createStartEntry in class AbstractBidirAlgo
    • createEntry

      protected SPTEntry createEntry(EdgeIteratorState edge, double weight, SPTEntry parent, boolean reverse)
      Description copied from class: AbstractNonCHBidirAlgo
      Creates a new entry of the shortest path tree (a SPTEntry or one of its subclasses) during a dijkstra expansion.
      Specified by:
      createEntry in class AbstractNonCHBidirAlgo
      Parameters:
      edge - the edge that is currently processed for the expansion
      weight - the weight the shortest path three entry should carry
      parent - the parent entry of in the shortest path tree
      reverse - true if we are currently looking at the backward search, false otherwise
    • getParent

      protected SPTEntry getParent(SPTEntry entry)
    • getName

      public String getName()
      Specified by:
      getName in interface RoutingAlgorithm
      Overrides:
      getName in class AbstractBidirAlgo
      Returns:
      name of this algorithm