paths method
Returns all paths from start
to target
including cycles.
- Returns an empty list if no path was found.
- To exclude cycles and list only the shortest paths
use the method
shortestPaths(start, target)
.
Implementation
List<List<T>> paths(T start, T target) {
return crawler.paths(start, target);
}