pub struct CommunityConfig {
pub gamma: f64,
pub resolution: f64,
pub iterations: usize,
pub deterministic: bool,
pub seed: Option<u64>,
pub min_community_size: usize,
}Expand description
Configuration for the Leiden community detection algorithm.
Fields§
§gamma: f64Resolution parameter controlling community granularity: higher values yield more, smaller communities.
resolution: f64Scaling factor applied to modularity.
iterations: usizeMaximum number of passes.
deterministic: boolWhether to run reproducibly. With a seed this is redundant; without one it fixes
the seed so that repeated runs agree.
seed: Option<u64>Seed for the random number generator.
min_community_size: usizeCommunities smaller than this are merged into a neighbour where possible.
Trait Implementations§
Source§impl Clone for CommunityConfig
impl Clone for CommunityConfig
Source§impl Debug for CommunityConfig
impl Debug for CommunityConfig
Auto Trait Implementations§
impl Freeze for CommunityConfig
impl RefUnwindSafe for CommunityConfig
impl Send for CommunityConfig
impl Sync for CommunityConfig
impl Unpin for CommunityConfig
impl UnsafeUnpin for CommunityConfig
impl UnwindSafe for CommunityConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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