edu.uci.ics.dillenco.simplegraph01
Class SimpleMap<V>

java.lang.Object
  extended by edu.uci.ics.dillenco.simplegraph01.SimpleMap<V>
Direct Known Subclasses:
HalfEdgeMap, NodeMap, QEdgeMap

abstract class SimpleMap<V>
extends Object

This is the abstract class for the classes that map Nodes, QEdges, HalfEdges, etc to user-defined attributes. These classes supports a scaled-down version of mapping, but they use direct object reference for efficiency.


Field Summary
protected  Graph graph
           
 
Constructor Summary
SimpleMap(Graph g)
           
 
Method Summary
abstract  void clear()
           
abstract  boolean isEmpty()
          Return whether this map is currently empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected final Graph graph
Constructor Detail

SimpleMap

SimpleMap(Graph g)
Method Detail

clear

public abstract void clear()

isEmpty

public abstract boolean isEmpty()
Return whether this map is currently empty.

Returns:
true if the map is empty.