public class MapGraphStore<T> extends Object implements GraphStore<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
idCounter |
protected Map<Integer,GraphNode<T>> |
nodes |
| Constructor and Description |
|---|
MapGraphStore() |
| Modifier and Type | Method and Description |
|---|---|
GraphNode<T> |
addNode() |
GraphNode<T> |
getNode(int id) |
Map<Integer,GraphNode<T>> |
getNodes() |
Iterator<GraphNode<T>> |
iterator() |
GraphNode<T> |
removeNode(int id) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic GraphNode<T> addNode()
addNode in interface GraphStore<T>public GraphNode<T> removeNode(int id)
removeNode in interface GraphStore<T>public GraphNode<T> getNode(int id)
getNode in interface GraphStore<T>public int size()
size in interface GraphStore<T>Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.