nl.uu.cs.treewidth.ngraph
Class NVertex<D>
java.lang.Object
nl.uu.cs.treewidth.ngraph.NVertex<D>
- All Implemented Interfaces:
- java.lang.Iterable<NVertex<D>>
- Direct Known Subclasses:
- HashVertex, ListVertex
public abstract class NVertex<D>
- extends java.lang.Object
- implements java.lang.Iterable<NVertex<D>>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
public D data
NVertex
public NVertex()
NVertex
public NVertex(D d)
newOfSameType
public abstract <T> NVertex<T> newOfSameType(T d)
isNeighbor
public abstract boolean isNeighbor(NVertex<D> v)
ensureNeighbor
public abstract boolean ensureNeighbor(NVertex<D> v)
addNeighbor
public abstract void addNeighbor(NVertex<D> v)
removeNeighbor
public abstract void removeNeighbor(NVertex<D> v)
getNeighbors
public abstract java.util.Iterator<NVertex<D>> getNeighbors()
getNumberOfNeighbors
public abstract int getNumberOfNeighbors()
iterator
public java.util.Iterator<NVertex<D>> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<NVertex<D>>
copy
public abstract NVertex<D> copy()