allLeaves property

List<Node<T>> allLeaves

Returns all the leaves of this graph (nodes without outputs)

Implementation

List<Node<T>> get allLeaves =>
    _allNodes.values.where((e) => e.isLeaf).toList();