outputsInDepthIntersection method

List<Node<T>> outputsInDepthIntersection({
  1. int? maxDepth,
  2. bool bfs = false,
})

Implementation

List<Node<T>> outputsInDepthIntersection({int? maxDepth, bool bfs = false}) {
  var intersection = outputsInDepth(maxDepth: maxDepth, bfs: bfs)
      .values
      .reduce((intersection, l) => intersection.intersection(l));
  return intersection;
}