pub fn new(num_nodes: usize, random_seed: u64) -> Self {
        let mut rng = ChaChaRng::seed_from_u64(random_seed);
        let mut config = Self::default();
        config.num_nodes = num_nodes;
        config.random_seed = random_seed;
        config.num_rounds = rng.gen_range(10, 101);
        config.degree = rng.gen_range(
            std::cmp::min(5, config.num_nodes / 2),
            std::cmp::min(config.num_nodes, 20),
        );
        config.reset_strategies();
        config
    }
/// Create a new config using the given num_nodes and random_seed.
Create a new config using the given num_nodes and random_seed.
Create a new config using the given num_nodes and random_seed .
pub fn new(num_nodes: usize, random_seed: u64) -> Self {
        let mut rng = ChaChaRng::seed_from_u64(random_seed);
        let mut config = Self::default();
        config.num_nodes = num_nodes;
        config.random_seed = random_seed;
        config.num_rounds = rng.gen_range(10, 101);
        config.degree = rng.gen_range(
            std::cmp::min(5, config.num_nodes / 2),
            std::cmp::min(config.num_nodes, 20),
        );
        config.reset_strategies();
        config
    }
pub fn new ( num_nodes : usize , random_seed : u64 ) -> Self { let mut rng = ChaChaRng :: seed_from_u64 ( random_seed ) ; let mut config = Self :: default ( ) ; config . num_nodes = num_nodes ; config . random_seed = random_seed ; config . num_rounds = rng . gen_range ( 10 , 101 ) ; config . degree = rng . gen_range ( std :: cmp :: min ( 5 , config . num_nodes / 2 ) , std :: cmp :: min ( config . num_nodes , 20 ) , ) ; config . reset_strategies ( ) ; config }
Create a new config using the given num_nodes and random_seed.
Create a new config using the given num_nodes and random_seed .
num_nodes
usize
random_seed
u64
num_nodes
usize
random_seed
u64