org._3pq.jgrapht.edge

Class UndirectedEdge

Implemented Interfaces:
Cloneable, Edge, Serializable
Known Direct Subclasses:
UndirectedWeightedEdge

public class UndirectedEdge
extends DefaultEdge

A implementation for an undirected edge.
Author:
Barak Naveh
Since:
Jul 14, 2003

Fields inherited from interface org._3pq.jgrapht.Edge

DEFAULT_EDGE_WEIGHT

Constructor Summary

UndirectedEdge(Object sourceVertex, Object targetVertex)

Method Summary

String
toString()
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 Details

UndirectedEdge

public UndirectedEdge(Object sourceVertex,
                      Object targetVertex)

Method Details

toString

public 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.
Returns:
a string representation of this directed edge.