Package dev.nm.graph
Interface WeightedEdge<V>
-
- Type Parameters:
V
- vertex type
- All Superinterfaces:
HyperEdge<V>
- All Known Subinterfaces:
WeightedArc<V>
- All Known Implementing Classes:
SimpleArc
,SimpleEdge
public interface WeightedEdge<V> extends HyperEdge<V>
A weighted edge has a weight or a cost associated with it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
cost()
Gets the cost or weight of this edge.
-