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 |
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 sourcev - the edge's sinkl - 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 sourcev - the edge's sink
toString
public String toString()
- Overrides:
- toString in class Edge