| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg._3pq.jgrapht.edge.DefaultEdgeorg._3pq.jgrapht.edge.DirectedEdgeorg._3pq.jgrapht.edge.DirectedWeightedEdgepublic class DirectedWeightedEdgeextends DirectedEdgeFields inherited from interface org._3pq.jgrapht.Edge | |
DEFAULT_EDGE_WEIGHT | |
Constructor Summary | |
| |
| |
Methods inherited from class org._3pq.jgrapht.edge.DirectedEdge | |
toString | |
Methods inherited from class org._3pq.jgrapht.edge.DefaultEdge | |
clone, containsVertex, getSource, getTarget, getWeight, oppositeVertex, setWeight | |
public DirectedWeightedEdge(Object sourceVertex,
Object targetVertex)public DirectedWeightedEdge(Object sourceVertex,
Object targetVertex,
double weight)Constructor for DirectedWeightedEdge.
- 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)