pub fn count_hyperedges(&self) -> usize {
        self.hyperedges
            .iter()
            .fold(0, |count, (_, weights)| count + weights.len())
    }
/// Returns the number of hyperedges in the hypergraph.
Returns the number of hyperedges in the hypergraph.
Returns the number of hyperedges in the hypergraph .
pub fn count_hyperedges(&self) -> usize {
        self.hyperedges
            .iter()
            .fold(0, |count, (_, weights)| count + weights.len())
    }
pub fn count_hyperedges ( & self ) -> usize { self . hyperedges . iter ( ) . fold ( 0 , | count , ( _ , weights ) | count + weights . len ( ) ) }
Returns the number of hyperedges in the hypergraph.
Returns the number of hyperedges in the hypergraph .
&self
&self