V
- the node type of the graphpublic interface IGraphPathFinder<V>
ITcDataSource.getPathFinder()
for instantiating.Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.util.Deque<V>> |
getAllPaths(V sourceNode,
V targetNode)
Returns the collection of paths from the source node to the target node (if such exists).
|
java.lang.Iterable<java.util.Deque<V>> |
getAllPathsToTargets(V sourceNode,
java.util.Set<V> targetNodes)
Returns the collection of paths from the source node to any of the target nodes (if such exists).
|
java.util.Deque<V> |
getPath(V sourceNode,
V targetNode)
Returns an arbitrary path from the source node to the target node (if such exists).
|
java.lang.Iterable<java.util.Deque<V>> |
getShortestPaths(V sourceNode,
V targetNode)
Returns the collection of shortest paths from the source node to the target node (if such exists).
|
java.util.Deque<V> getPath(V sourceNode, V targetNode)
sourceNode
- the source node of the pathtargetNode
- the target node of the pathjava.lang.Iterable<java.util.Deque<V>> getShortestPaths(V sourceNode, V targetNode)
sourceNode
- the source node of the pathtargetNode
- the target node of the pathjava.lang.Iterable<java.util.Deque<V>> getAllPaths(V sourceNode, V targetNode)
sourceNode
- the source node of the pathtargetNode
- the target node of the pathjava.lang.Iterable<java.util.Deque<V>> getAllPathsToTargets(V sourceNode, java.util.Set<V> targetNodes)
sourceNode
- the source node of the pathtargetNodes
- the set of target nodes of the paths