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