scanPathsFrom method

Future<GraphScanResult<T>> scanPathsFrom(
  1. T root,
  2. T target, {
  3. bool findAll = false,
})

Scans and returns the paths from root to target.

Implementation

Future<GraphScanResult<T>> scanPathsFrom(T root, T target,
    {bool findAll = false}) {
  var scanner = GraphScanner<T>(findAll: findAll);
  return scanner.scanPathsFrom(root, NodeEquals(target), graph: this);
}