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