Returns all the leaves of this graph (nodes without outputs)
List<Node<T>> get allLeaves => _allNodes.values.where((e) => e.isLeaf).toList();