public abstract class AbstractGraph<R extends GraphNode<K,V>,K,V> extends Object implements Graph<R,K,V>
Constructor and Description |
---|
AbstractGraph() |
AbstractGraph(Set<R> nodes)
Create a new graph from a set of nodes.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addNode(K key,
V value) |
abstract void |
addNode(R node) |
abstract boolean |
containsKey(K key) |
R |
get(K key)
Retrieve a node by key.
|
abstract Map<K,R> |
getItems() |
V |
getNodeContents(K key)
Retrieve the contents of a node by key.
|
void |
unmarkAll()
Reset the 'visited' marks of the graph to false.
|
public abstract void addNode(R node)
node
- GraphNodepublic abstract boolean containsKey(K key)
public R get(K key)
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.