sortedByInputDepth method
Implementation
List<Node<T>> sortedByInputDepth({bool bfs = false}) {
var nodesInputs = inputsInDepth(bfs: bfs);
var entries = nodesInputs.entries.toList();
entries.sort((a, b) => a.value.length.compareTo(b.value.length));
var nodes = entries.keys.toList();
return nodes;
}