org.jscience.computing.graph.edges
Class DirectedEdge

java.lang.Object
  extended by org.jscience.computing.graph.edges.DefaultEdge
      extended by org.jscience.computing.graph.edges.DirectedEdge
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Edge
Direct Known Subclasses:
DirectedWeightedEdge

public class DirectedEdge
extends DefaultEdge

A implementation of directed edge.

Since:
Jul 14, 2003
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jscience.computing.graph.Edge
DEFAULT_EDGE_WEIGHT
 
Constructor Summary
DirectedEdge(java.lang.Object sourceVertex, java.lang.Object targetVertex)
           
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this directed edge.
 
Methods inherited from class org.jscience.computing.graph.edges.DefaultEdge
clone, containsVertex, getSource, getTarget, getWeight, oppositeVertex, setWeight
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectedEdge

public DirectedEdge(java.lang.Object sourceVertex,
                    java.lang.Object targetVertex)
See Also:
DefaultEdge.DefaultEdge(Object,Object)
Method Detail

toString

public java.lang.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.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this directed edge.