shortestPathsFrom method
Returns the shortest paths from root
to target
.
Implementation
Future<List<List<Node<T>>>> shortestPathsFrom(T root, T target,
{bool findAll = false}) async {
var result = await scanPathsFrom(root, target, findAll: findAll);
return result.paths.shortestPaths();
}