pub struct PartitioningConfig {
pub n_parts: usize,
pub coarsening: CoarseningStrategy,
pub refinement: RefinementStrategy,
pub imbalance_factor: f64,
pub n_coarsen_levels: usize,
pub seed: u64,
}Expand description
Configuration for the adjacency-list multilevel k-way partitioner.
Fields§
§n_parts: usizeNumber of output partitions (k). Must be >= 2.
coarsening: CoarseningStrategyCoarsening strategy. Default: HeavyEdgeMatching.
refinement: RefinementStrategyRefinement strategy. Default: FiducciaMattheyses.
imbalance_factor: f64Maximum allowed imbalance: max(|Pi|/avg) - 1. Default 0.03 (3%).
n_coarsen_levels: usizeMaximum number of coarsening levels. Default 10.
seed: u64Random seed for stochastic strategies. Default 42.
Trait Implementations§
Source§impl Clone for PartitioningConfig
impl Clone for PartitioningConfig
Source§fn clone(&self) -> PartitioningConfig
fn clone(&self) -> PartitioningConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitioningConfig
impl Debug for PartitioningConfig
Auto Trait Implementations§
impl Freeze for PartitioningConfig
impl RefUnwindSafe for PartitioningConfig
impl Send for PartitioningConfig
impl Sync for PartitioningConfig
impl Unpin for PartitioningConfig
impl UnsafeUnpin for PartitioningConfig
impl UnwindSafe for PartitioningConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more