walkOutputsOrderFrom<R> method

List<Node<T>> walkOutputsOrderFrom<R>(
  1. Iterable<T> from, {
  2. NodeMatcher<T>? stopMatcher,
  3. bool processRoots = true,
  4. int maxExpansion = 1,
  5. bool expandSideRoots = false,
  6. bool sortByInputDependency = false,
  7. bool bfs = false,
})

Walk the graph nodes outputs starting from and stopping at stopMatcher (if provided).

Implementation

List<Node<T>> walkOutputsOrderFrom<R>(
  Iterable<T> from, {
  NodeMatcher<T>? stopMatcher,
  bool processRoots = true,
  int maxExpansion = 1,
  bool expandSideRoots = false,
  bool sortByInputDependency = false,
  bool bfs = false,
}) =>
    GraphWalker<T>(
      stopMatcher: stopMatcher,
      processRoots: processRoots,
      maxExpansion: maxExpansion,
      sortByInputDependency: sortByInputDependency,
      bfs: bfs,
    ).walkOrder(
      from.toList(),
      nodeProvider: (step, nodeValue) => getNode(nodeValue),
      outputsProvider: (step, node) => node._outputs,
      expandSideBranches: expandSideRoots,
    );