1 2 3 4 5 6 7 8 9 10 11 12
use crate::{HyperedgeTrait, Hypergraph, VertexTrait}; impl<V, HE> Hypergraph<V, HE> where V: VertexTrait, HE: HyperedgeTrait, { /// Returns the number of hyperedges in the hypergraph. pub fn count_hyperedges(&self) -> usize { self.hyperedges.len() } }