public class BasicNodeManager<T> extends Object implements NodeManager<T>
NodeManager.| Constructor and Description |
|---|
BasicNodeManager() |
| 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
|
Stream<T> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Stream<T> stream()
stream in interface NodeManager<T>Stream of the nodes in this graphpublic int getNumberOfNodes()
getNumberOfNodes in interface NodeManager<T>public void addNode(T n)
NodeManageraddNode in interface NodeManager<T>public void removeNode(T n)
NodeManagerremoveNode in interface NodeManager<T>public boolean containsNode(T N)
containsNode in interface NodeManager<T>