|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - the type of nodes this NodeManager tracks.public interface NodeManager<T>
An object which tracks graph nodes.
This is effectively a stripped-down collection interface. We choose to avoid using the full Collection interface, so that
it takes less code to implement a new NodeManager.
| Method Summary | |
|---|---|
void |
addNode(T n)
add a node to this graph |
boolean |
containsNode(T n)
|
int |
getNumberOfNodes()
|
java.util.Iterator<T> |
iterator()
|
void |
removeNode(T n)
remove a node from this graph |
| Method Detail |
|---|
java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>Iterator of the nodes in this graphint getNumberOfNodes()
void addNode(T n)
void removeNode(T n)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionboolean containsNode(T n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||