walkOutputsFrom<R> method
R?
walkOutputsFrom<R>(
- Iterable<
T> from, - GraphWalkNodeProcessor<
T, R> process, { - NodeMatcher<
T> ? stopMatcher, - bool processRoots = true,
- int maxExpansion = 1,
- bool bfs = false,
Walk the graph nodes outputs starting from
and stopping at stopMatcher
(if provided).
Implementation
R? walkOutputsFrom<R>(
Iterable<T> from,
GraphWalkNodeProcessor<T, R> process, {
NodeMatcher<T>? stopMatcher,
bool processRoots = true,
int maxExpansion = 1,
bool bfs = false,
}) =>
GraphWalker<T>(
stopMatcher: stopMatcher,
processRoots: processRoots,
maxExpansion: maxExpansion,
bfs: bfs,
).walkByNodes<R>(
valuesToNodes(from),
process: process,
outputsProvider: (step, node) => node._outputs,
);