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() |
public 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–2015 JBoss by Red Hat. All rights reserved.