pub fn add_vertex(&mut self, weight: V) -> VertexIndex {
        self.vertices
            .entry(weight)
            .or_insert(IndexSet::with_capacity(0));

        // Assume that unwrapping the index can't be none due to previous insertion.
        self.vertices.get_index_of(&weight).unwrap()
    }
/// Adds a vertex as a custom weight in the hypergraph.
/// Returns the index of the vertex.
Adds a vertex as a custom weight in the hypergraph.
Returns the index of the vertex.
Adds a vertex as a custom weight in the hypergraph . Returns the index of the vertex .
pub fn add_vertex(&mut self, weight: V) -> VertexIndex {
        self.vertices
            .entry(weight)
            .or_insert(IndexSet::with_capacity(0));
        // Assume that unwrapping the index can't be none due to previous insertion.
        self.vertices.get_index_of(&weight).unwrap()
    }
pub fn add_vertex ( & mut self , weight : V ) -> VertexIndex { self . vertices . entry ( weight ) . or_insert ( IndexSet :: with_capacity ( 0 ) ) ; // Assume that unwrapping the index can't be none due to previous insertion. self . vertices . get_index_of ( & weight ) . unwrap ( ) }
Adds a vertex as a custom weight in the hypergraph.
Adds a vertex as a custom weight in the hypergraph .
&mut self
weight
V
&mut self
weight
V