V
- the type of the nodes in the graphpublic interface IGraphDataSource<V>
extends java.io.Serializable
Note that the old version of the interface is broken at version 1.6; MultiSets are now presented as Maps instead of Lists.
Modifier and Type | Method and Description |
---|---|
void |
attachAsFirstObserver(IGraphObserver<V> observer)
Attaches a new graph observer to this graph data source as the first one.
|
void |
attachObserver(IGraphObserver<V> observer)
Attaches a new graph observer to this graph data source.
|
void |
detachObserver(IGraphObserver<V> observer)
Detaches an already registered graph observer from this graph data source.
|
java.util.Set<V> |
getAllNodes()
Returns the complete set of nodes in the graph data source.
|
java.util.Map<V,java.lang.Integer> |
getTargetNodes(V source)
Returns the target nodes for the given source node.
|
void attachObserver(IGraphObserver<V> observer)
observer
- the graph observervoid attachAsFirstObserver(IGraphObserver<V> observer)
observer
- the graph observervoid detachObserver(IGraphObserver<V> observer)
observer
- the graph observerjava.util.Set<V> getAllNodes()
java.util.Map<V,java.lang.Integer> getTargetNodes(V source)
source
- the source node