V
- the type parameter of the nodepublic interface ITcDataSource<V>
Modifier and Type | Method and Description |
---|---|
void |
attachObserver(ITcObserver<V> to)
Attach a transitive closure relation observer.
|
void |
detachObserver(ITcObserver<V> to)
Detach a transitive closure relation observer.
|
void |
dispose()
Call this method to properly dispose the data structures of a transitive closure algorithm.
|
java.util.Set<V> |
getAllReachableSources(V target)
Returns all nodes from which the target node is reachable.
|
java.util.Set<V> |
getAllReachableTargets(V source)
Returns all nodes which are reachable from the source node.
|
IGraphPathFinder<V> |
getPathFinder()
The returned
IGraphPathFinder can be used to retrieve paths between nodes using transitive reachability. |
boolean |
isReachable(V source,
V target)
Returns true if the target node is reachable from the source node.
|
void attachObserver(ITcObserver<V> to)
to
- the observer objectvoid detachObserver(ITcObserver<V> to)
to
- the observer objectjava.util.Set<V> getAllReachableTargets(V source)
source
- the source nodejava.util.Set<V> getAllReachableSources(V target)
target
- the target nodeboolean isReachable(V source, V target)
source
- the source nodetarget
- the target nodeIGraphPathFinder<V> getPathFinder()
IGraphPathFinder
can be used to retrieve paths between nodes using transitive reachability.void dispose()