org.geotools.graph.traverse.standard
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 |
double |
getWeight(Node n,
Edge e1,
Edge e2)
Returns the weight for a node, with respect to two adjecent edges. |
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.
Copyright © 1996-2009 Geotools. All Rights Reserved.