Serialized Form
nodes
java.util.ArrayList<E> nodes
- Contains the objects associated with the node indeces.
nodeindex
java.util.HashMap<K,V> nodeindex
- Contains the indices of the nodes. The vector "nodes" contains this
information implicitly but this way we can find indexes in log time at
the cost of memory (node that the edge lists typically use much more memory
than this anyway). Note that the nodes vector is still necessary to
provide constant access to nodes based on indexes.
neighbors
java.util.ArrayList<E> neighbors
- Contains sets of node indexes. If "nodes" is not null, indices are
defined by "nodes", otherwise they correspond to 0,1,...
directed
boolean directed
- Indicates if the graph is directed.
lastSeed
long lastSeed