scratch.tom.simpleGraph
Class HyperEdge<V>

java.lang.Object
  extended by scratch.tom.simpleGraph.HyperEdge<V>
Type Parameters:
V - type of the vertices
All Implemented Interfaces:
Edge<V>, Edge.Hyper<V>

public class HyperEdge<V>
extends Object
implements Edge.Hyper<V>

a hyper edge

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
HyperEdge()
           
HyperEdge(Collection<V> v)
           
HyperEdge(V... v)
           
 
Method Summary
 void add(V v)
           
 void addAll(Collection<V> v)
           
 Collection<V> getEndpoints()
           
 boolean remove(V v)
           
 boolean removeAll(Collection<V> v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperEdge

public HyperEdge()

HyperEdge

public HyperEdge(V... v)

HyperEdge

public HyperEdge(Collection<V> v)
Method Detail

getEndpoints

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

add

public void add(V v)
Specified by:
add in interface Edge.Hyper<V>

addAll

public void addAll(Collection<V> v)
Specified by:
addAll in interface Edge.Hyper<V>

remove

public boolean remove(V v)
Specified by:
remove in interface Edge.Hyper<V>

removeAll

public boolean removeAll(Collection<V> v)
Specified by:
removeAll in interface Edge.Hyper<V>