scratch.tom.simpleGraph
Class DirectedEdge<V>

java.lang.Object
  extended by scratch.tom.simpleGraph.DirectedEdge<V>
Type Parameters:
V - the type of the vertices in this edge
All Implemented Interfaces:
Edge<V>, Edge.Directed<V>

public class DirectedEdge<V>
extends Object
implements Edge.Directed<V>

a directed edge with vertex parameters specified

Author:
Tom Nelson - RABA Technologies

Nested Class Summary
 
Nested classes/interfaces inherited from interface scratch.tom.simpleGraph.Edge
Edge.Directed<W>, Edge.Hyper<W>
 
Constructor Summary
DirectedEdge(V first, V second)
           
 
Method Summary
 Collection<V> getEndpoints()
           
 V getFirst()
           
 V getSecond()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectedEdge

public DirectedEdge(V first,
                    V second)
Method Detail

getEndpoints

public Collection<V> getEndpoints()
Specified by:
getEndpoints in interface Edge<V>

getFirst

public V getFirst()
Specified by:
getFirst in interface Edge.Directed<V>

getSecond

public V getSecond()
Specified by:
getSecond in interface Edge.Directed<V>