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