pub struct DecompositionConfig {
pub num_partitions: usize,
pub spectral_method: SpectralMethod,
pub community_algorithm: CommunityDetection,
pub overlap_size: usize,
pub adaptive_granularity: bool,
pub target_partition_size: usize,
pub max_consensus_iterations: usize,
pub consensus_tolerance: f64,
}Expand description
Configuration for advanced decomposer
Fields§
§num_partitions: usizeNumber of partitions to create
spectral_method: SpectralMethodSpectral method to use
community_algorithm: CommunityDetectionCommunity detection algorithm
overlap_size: usizeOverlap size between partitions (number of variables)
adaptive_granularity: boolEnable adaptive granularity control
target_partition_size: usizeTarget partition size for adaptive mode
max_consensus_iterations: usizeMaximum number of consensus iterations
consensus_tolerance: f64Convergence tolerance for consensus
Implementations§
Source§impl DecompositionConfig
impl DecompositionConfig
Sourcepub const fn with_num_partitions(self, n: usize) -> Self
pub const fn with_num_partitions(self, n: usize) -> Self
Set the number of partitions
Sourcepub const fn with_method(self, method: SpectralMethod) -> Self
pub const fn with_method(self, method: SpectralMethod) -> Self
Set the spectral method
Sourcepub const fn with_community_algorithm(self, alg: CommunityDetection) -> Self
pub const fn with_community_algorithm(self, alg: CommunityDetection) -> Self
Set the community detection algorithm
Sourcepub const fn with_overlap_size(self, size: usize) -> Self
pub const fn with_overlap_size(self, size: usize) -> Self
Set the overlap size
Sourcepub const fn with_adaptive_granularity(self, enable: bool) -> Self
pub const fn with_adaptive_granularity(self, enable: bool) -> Self
Enable or disable adaptive granularity
Sourcepub const fn with_target_partition_size(self, size: usize) -> Self
pub const fn with_target_partition_size(self, size: usize) -> Self
Set the target partition size
Trait Implementations§
Source§impl Clone for DecompositionConfig
impl Clone for DecompositionConfig
Source§fn clone(&self) -> DecompositionConfig
fn clone(&self) -> DecompositionConfig
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 DecompositionConfig
impl Debug for DecompositionConfig
Auto Trait Implementations§
impl Freeze for DecompositionConfig
impl RefUnwindSafe for DecompositionConfig
impl Send for DecompositionConfig
impl Sync for DecompositionConfig
impl Unpin for DecompositionConfig
impl UnwindSafe for DecompositionConfig
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.