org._3pq.jgrapht.edge

Class DirectedEdge

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

public class DirectedEdge
extends DefaultEdge

A implementation of directed edge.
Author:
Barak Naveh
Since:
Jul 14, 2003

Fields inherited from interface org._3pq.jgrapht.Edge

DEFAULT_EDGE_WEIGHT

Constructor Summary

DirectedEdge(Object sourceVertex, Object targetVertex)

Method Summary

String
toString()
Returns a string representation of this directed edge.

Methods inherited from class org._3pq.jgrapht.edge.DefaultEdge

clone, containsVertex, getSource, getTarget, getWeight, oppositeVertex, setWeight

Constructor Details

DirectedEdge

public DirectedEdge(Object sourceVertex,
                    Object targetVertex)

Method Details

toString

public String toString()
Returns a string representation of this directed edge. The representation is a parenthesized pair (v1,v2) where v1 is the source vertex of this edge and v2 is the target vertex of this edge.
Returns:
a string representation of this directed edge.