|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.dataStructure.graph.AbstractGraph
Copyright (c) Columbia University
| Field Summary | |
protected java.util.Map |
items
|
| Constructor Summary | |
AbstractGraph()
|
|
AbstractGraph(java.util.Set nodes)
Create a new graph from a set of nodes. |
|
| Method Summary | |
void |
addNode(GraphNode node)
|
boolean |
containsKey(java.lang.Object key)
|
GraphNode |
get(java.lang.Object key)
Retrieve a node by key. |
java.util.Map |
getItems()
|
java.lang.Object |
getNodeContents(java.lang.Object key)
Retrieve the contents of a node by key. |
void |
unmarkAll()
Reset the 'visited' marks of the graph to false. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface baseCode.dataStructure.graph.Graph |
addNode |
| Field Detail |
protected java.util.Map items
| Constructor Detail |
public AbstractGraph()
public AbstractGraph(java.util.Set nodes)
nodes - Set of AbstractGraphNodes.| Method Detail |
public void addNode(GraphNode node)
node - GraphNodepublic GraphNode get(java.lang.Object key)
get in interface Graphkey - Object
getNodeContents(Object)public java.util.Map getItems()
public java.lang.Object getNodeContents(java.lang.Object key)
getNodeContents in interface Graphkey - Object
get(java.lang.Object)public boolean containsKey(java.lang.Object key)
containsKey in interface Graphkey - Object
public void unmarkAll()
unmarkAll in interface Graph
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||