T
- the type of nodes this NodeManager
tracks.public interface NodeManager<T> extends Iterable<T>
Collection
interface, so that
it takes less code to implement a new NodeManager
.Modifier and Type | Method and Description |
---|---|
void |
addNode(T n)
add a node to this graph
|
boolean |
containsNode(T n) |
int |
getNumberOfNodes() |
Iterator<T> |
iterator() |
void |
removeNode(T n)
remove a node from this graph
|
forEach, spliterator
int getNumberOfNodes()
void addNode(T n)
void removeNode(T n) throws UnsupportedOperationException
UnsupportedOperationException
boolean containsNode(T n)