graph_base/generator/
mod.rs

1pub mod hypergraph;
2
3use rand::prelude::*;
4
5pub trait RandomGenerate {
6    fn random_generate(n: usize, e: usize, rng: &mut impl Rng) -> Self;
7
8}
9
10pub trait RandomExpand {
11    fn random_expand(&self, n_plus: usize, e_plus: usize, rng: &mut impl Rng) -> Self;
12}
13
14pub trait RandomShrink {
15    fn random_shrink(&self, n_minus: usize, e_minus: usize, rng: &mut impl Rng) -> Self;
16}
17
18pub trait RandomModify {
19    fn random_modify(&self, n_modify: usize, e_modify: usize, rng: &mut impl Rng) -> Self;
20}