Package net.sf.tweety.graphs
Class WeightedDirectedEdge<S extends Node,T extends java.lang.Number>
- java.lang.Object
-
- net.sf.tweety.graphs.Edge<T>
-
- net.sf.tweety.graphs.DirectedEdge<S>
-
- net.sf.tweety.graphs.WeightedDirectedEdge<S,T>
-
- All Implemented Interfaces:
WeightedEdge<S,T>
public class WeightedDirectedEdge<S extends Node,T extends java.lang.Number> extends DirectedEdge<S> implements WeightedEdge<S,T>
-
-
Constructor Summary
Constructors Constructor Description WeightedDirectedEdge(S nodeA, S nodeB, T weight)
Creates a new weighted direct edge.
-
-
-
Method Detail
-
getWeight
public T getWeight()
Description copied from interface:WeightedEdge
Returns the weight of this edge.- Specified by:
getWeight
in interfaceWeightedEdge<S extends Node,T extends java.lang.Number>
- Returns:
- the weight of this edge.
-
setWeight
public void setWeight(T number)
TODO- Parameters:
number
-
-
-