pub fn terminals<'a>(&'a self) -> impl Iterator<Item = NodeIndex> + 'a {
        self.graph
            .node_indices()
            .filter(move |idx| self.graph[*idx].is_terminal())
    }
/// Get an iterator over the terminals in the constituency tree.
Get an iterator over the terminals in the constituency tree.
Get an iterator over the terminals in the constituency tree .
pub fn terminals<'a>(&'a self) -> impl Iterator<Item = NodeIndex> + 'a {
        self.graph
            .node_indices()
            .filter(move |idx| self.graph[*idx].is_terminal())
    }
pub fn terminals < ' a > ( & ' a self ) -> impl Iterator < Item = NodeIndex > + ' a { self . graph . node_indices ( ) . filter ( move | idx | self . graph [ * idx ] . is_terminal ( ) ) }
Get an iterator over the terminals in the constituency tree.
Get an iterator over the terminals in the constituency tree .
&'a self
&'a self