pub trait Generate<N, E, T: GraphType> {
// Required methods
fn from_file<P: AsRef<Path>>(path: P) -> Self;
fn random_hypergraph(
node_count: usize,
edges_by_size: HashMap<usize, usize>,
) -> Self;
fn random_weighted_hypergraph(
node_count: usize,
edges_by_size: HashMap<usize, usize>,
node_weight_sampler: impl Fn() -> N,
edge_weight_sampler: impl Fn() -> E,
) -> Self;
}Expand description
Still a stub.
Required Methods§
Sourcefn random_hypergraph(
node_count: usize,
edges_by_size: HashMap<usize, usize>,
) -> Self
fn random_hypergraph( node_count: usize, edges_by_size: HashMap<usize, usize>, ) -> Self
Unweighted Hypergraphs only.
fn random_weighted_hypergraph( node_count: usize, edges_by_size: HashMap<usize, usize>, node_weight_sampler: impl Fn() -> N, edge_weight_sampler: impl Fn() -> E, ) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.