org._3pq.jgrapht.edge
Class DefaultEdge
java.lang.Object
org._3pq.jgrapht.edge.DefaultEdge
- Cloneable, Edge, Serializable
public class DefaultEdge
extends java.lang.Object
implements Edge, Cloneable, Serializable
A skeletal implementation of the Edge interface, to minimize the
effort required to implement the interface.
DefaultEdge(Object sourceVertex, Object targetVertex) - Constructor for DefaultEdge.
|
DefaultEdge
public DefaultEdge(Object sourceVertex,
Object targetVertex)
Constructor for DefaultEdge.
sourceVertex
- source vertex of the edge.targetVertex
- target vertex of the edge.
clone
public Object clone()
- clone in interface Edge
containsVertex
public boolean containsVertex(Object v)
- containsVertex in interface Edge
org._3pq.jgrapht.Edge.containsVertex(java.lang.Object)
oppositeVertex
public Object oppositeVertex(Object v)
- oppositeVertex in interface Edge
org._3pq.jgrapht.Edge.oppositeVertex(java.lang.Object)
setWeight
public void setWeight(double weight)
- setWeight in interface Edge