scratch.tom.simpleGraph
Class DirectedEdge<V>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectedEdge
public DirectedEdge(V first,
V second)
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>