Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org._3pq.jgrapht.edge.DefaultEdge
org._3pq.jgrapht.edge.UndirectedEdge
org._3pq.jgrapht.edge.UndirectedWeightedEdge
public class UndirectedWeightedEdge
extends UndirectedEdge
Fields inherited from interface org._3pq.jgrapht.Edge | |
DEFAULT_EDGE_WEIGHT |
Constructor Summary | |
| |
|
Methods inherited from class org._3pq.jgrapht.edge.UndirectedEdge | |
toString |
Methods inherited from class org._3pq.jgrapht.edge.DefaultEdge | |
clone , containsVertex , getSource , getTarget , getWeight , oppositeVertex , setWeight |
public UndirectedWeightedEdge(Object sourceVertex, Object targetVertex)
public UndirectedWeightedEdge(Object sourceVertex, Object targetVertex, double weight)
Constructor for UndirectedWeightedEdge.
- Parameters:
sourceVertex
- source vertex of the new edge.targetVertex
- target vertex of the new edge.weight
- the weight of the new edge.
public double getWeight()
- Overrides:
- getWeight in interface DefaultEdge
- See Also:
Edge.getWeight()
public void setWeight(double weight)
- Overrides:
- setWeight in interface DefaultEdge
- See Also:
Edge.setWeight(double)