In the impl for lax::hypergraph::Hypergraph, add a function to delete a list of edges
pub fn delete_edge(&mut self, ids: &[EdgeId]) {
todo!()
}
You can assume that each id in ids is a valid EdgeId for this Hypergraph (and panic if it's out-of-bounds).
You will need to:
NOTE: this method takes a slice of edge ids, since removing them one-at-a-time will be less efficient.
In the
implforlax::hypergraph::Hypergraph, add a function to delete a list of edgesYou can assume that each
idinidsis a validEdgeIdfor thisHypergraph(and panic if it's out-of-bounds).You will need to:
NOTE: this method takes a slice of edge ids, since removing them one-at-a-time will be less efficient.