lu.cs.co.graph
Class DirectedEdge

java.lang.Object
  |
  +--lu.cs.co.graph.Edge
        |
        +--lu.cs.co.graph.DirectedEdge

public class DirectedEdge
extends Edge

A directed edge. The edge points from the field u to the field v.


Fields inherited from class lu.cs.co.graph.Edge
len, u, v
 
Constructor Summary
DirectedEdge(Vertex u, Vertex v)
          A directed edge of unit length between two vertices.
DirectedEdge(Vertex u, Vertex v, int l)
          A directed edge between two vertices of given length.
 
Method Summary
 String toString()
           
 
Methods inherited from class lu.cs.co.graph.Edge
clone, compareTo, compareTo, neighbour
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectedEdge

public DirectedEdge(Vertex u,
                    Vertex v,
                    int l)
A directed edge between two vertices of given length. The edge points from ur to v.
Parameters:
u - the edge's source
v - the edge's sink
l - the edge's length

DirectedEdge

public DirectedEdge(Vertex u,
                    Vertex v)
A directed edge of unit length between two vertices. The edge points from *ur to v. The length is 1.
Parameters:
u - the edge's source
v - the edge's sink
Method Detail

toString

public String toString()
Overrides:
toString in class Edge