Package org._3pq.jgrapht.edge
Class UndirectedEdge
- java.lang.Object
-
- org._3pq.jgrapht.edge.DefaultEdge
-
- org._3pq.jgrapht.edge.UndirectedEdge
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Edge
- Direct Known Subclasses:
UndirectedWeightedEdge
public class UndirectedEdge extends DefaultEdge
A implementation for an undirected edge.- Since:
- Jul 14, 2003
- Author:
- Barak Naveh
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org._3pq.jgrapht.Edge
DEFAULT_EDGE_WEIGHT
-
-
Constructor Summary
Constructors Constructor Description UndirectedEdge(java.lang.Object sourceVertex, java.lang.Object targetVertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Returns a string representation of this undirected edge.-
Methods inherited from class org._3pq.jgrapht.edge.DefaultEdge
clone, containsVertex, getSource, getTarget, getWeight, oppositeVertex, setWeight
-
-
-
-
Constructor Detail
-
UndirectedEdge
public UndirectedEdge(java.lang.Object sourceVertex, java.lang.Object targetVertex)- See Also:
DefaultEdge(Object, Object)
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string representation of this undirected edge. The representation is a curly-braced pair {v1,v2} where v1,v2 are the two endpoint vertices of this edge.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this directed edge.
-
-