org.apache.commons.graph
Interface WeightedEdge<V extends Vertex>
- Type Parameters:
V
- the Graph vertices type
- All Superinterfaces:
- Comparable<WeightedEdge<V>>, Edge<V>
- All Known Subinterfaces:
- LabeledWeightedEdge<V>
public interface WeightedEdge<V extends Vertex>
- extends Edge<V>, Comparable<WeightedEdge<V>>
A WeightedEdge is an Edge
where a number (weight) is assigned to represent, for example,
costs, lengths or capacities, etc. depending on the problem.
Method Summary |
Double |
getWeight()
Gets the weight attribute of the WeightedEdge object |
getWeight
Double getWeight()
- Gets the weight attribute of the WeightedEdge object
- Returns:
- the weight attribute of the WeightedEdge object
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.