shortestPathsFrom method

Future<List<List<Node<T>>>> shortestPathsFrom(
  1. T root,
  2. T target, {
  3. bool findAll = false,
})

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();
}