public class PathsFinder
extends java.lang.Object
| Constructor and Description |
|---|
PathsFinder(VertexCondition startSetCondition,
VertexCondition finalSetCondition,
boolean shortestPathsOnly)
Creates an instance for the specified vertex conditions.
|
PathsFinder(VertexCondition startSetCondition,
VertexCondition finalSetCondition,
boolean shortestPathsOnly,
boolean directPathsOnly)
Creates an instance for the specified vertex conditions.
|
| Modifier and Type | Method and Description |
|---|---|
AtomicVertex[] |
findPaths(AtomicVertex[] graph)
Finds all paths from the specified start vertices to the vertices
fullfilling the specified condition.
|
VertexCondition |
getFinalSetCondition() |
VertexCondition |
getStartSetCondition() |
boolean |
isShortestPathsOnly() |
public PathsFinder(VertexCondition startSetCondition, VertexCondition finalSetCondition, boolean shortestPathsOnly)
startSetCondition - Condition defining the start set.finalSetCondition - Condition defining the final set.shortestPathsOnly - if true only the shortest
paths are returned.public PathsFinder(VertexCondition startSetCondition, VertexCondition finalSetCondition, boolean shortestPathsOnly, boolean directPathsOnly)
startSetCondition - Condition defining the start set.finalSetCondition - Condition defining the final set.shortestPathsOnly - if true only the shortest
paths are returned.directPathsOnly - if true only paths of length 1
are returned.public VertexCondition getFinalSetCondition()
public boolean isShortestPathsOnly()
public VertexCondition getStartSetCondition()
public AtomicVertex[] findPaths(AtomicVertex[] graph)
graph - Complete graph.