scratch.tom.simpleGraph
Interface Edge<V>

Type Parameters:
V - the type of the vertices
All Known Subinterfaces:
Edge.Directed<W>, Edge.Hyper<W>
All Known Implementing Classes:
DirectedEdge, HyperEdge, UndirectedEdge

public interface Edge<V>

Edge is parameterized for a particular vertex type. Edge is a type safe instance of an edge containing Integer vertices. There are two sub-interfaces. A DirectedEdge instance would implement Edge.Directed An UndirectedEdge instance would implement Edge A HyperEdge instance would implement Edge.Hyper. This was done so as to provide interfaces for directedness and hyperness (in the context of Edges) and to not steal away the use of the names DirectedEdge and HyperEdge for the instance classes

Author:
Tom Nelson - RABA Technologies

Nested Class Summary
static interface Edge.Directed<W>
          Directed adds two methods to Edge
static interface Edge.Hyper<W>
          Hyper adds several methods to Edge
 
Method Summary
 Collection<V> getEndpoints()
           
 

Method Detail

getEndpoints

Collection<V> getEndpoints()