outputsInDepth method

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

Implementation

Map<Node<T>, List<Node<T>>> outputsInDepth(
        {int? maxDepth, bool bfs = false}) =>
    Map<Node<T>, List<Node<T>>>.fromEntries(map(
        (e) => MapEntry(e, e.outputsInDepth(maxDepth: maxDepth, bfs: bfs))));