pub fn nonterminals<'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 terminal indices in the constituency tree.
Get an iterator over the terminal indices in the constituency tree.
Get an iterator over the terminal indices in the constituency tree .
pub fn nonterminals<'a>(&'a self) -> impl Iterator<Item = NodeIndex> + 'a {
        self.graph
            .node_indices()
            .filter(move |idx| !self.graph[*idx].is_terminal())
    }
pub fn nonterminals < ' 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 terminal indices in the constituency tree.
Get an iterator over the terminal indices in the constituency tree .
&'a self
&'a self