Interface DijkstraIterator.NodeWeighter

Enclosing class:
DijkstraIterator

public static interface DijkstraIterator.NodeWeighter
Supplies a weight for each pair of adjacent edges.
Author:
Sandeep Kumar Jakkaraju sandeepkumar@iitbombay.org
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getWeight(Node n, Edge e1, Edge e2)
    Returns the weight for a node, with respect to two adjecent edges.
  • Method Details

    • getWeight

      double getWeight(Node n, Edge e1, Edge e2)
      Returns the weight for a node, with respect to two adjecent edges.
      Parameters:
      n - The node.
      e1 - First edge.
      e2 - Second edge.
      Returns:
      The weight associated with traversing through the node from the first edge to the second.