Package org.jgrapht.graph
Class DefaultWeightedEdge
- java.lang.Object
-
- org.jgrapht.graph.IntrusiveEdge
-
- org.jgrapht.graph.DefaultEdge
-
- org.jgrapht.graph.DefaultWeightedEdge
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class DefaultWeightedEdge extends DefaultEdge
A default implementation for edges in aWeightedGraph. All access to the weight of an edge must go through the graph interface, which is why this class doesn't expose any public methods.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID(package private) doubleweight-
Fields inherited from class org.jgrapht.graph.IntrusiveEdge
source, target
-
-
Constructor Summary
Constructors Constructor Description DefaultWeightedEdge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublegetWeight()Retrieves the weight of this edge.-
Methods inherited from class org.jgrapht.graph.DefaultEdge
getSource, getTarget, toString
-
Methods inherited from class org.jgrapht.graph.IntrusiveEdge
clone
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
weight
double weight
-
-