pub enum LpaVariant {
Dominance,
Retention,
Fast,
}Expand description
Label propagation variant (igraph_lpa_variant_t).
Variants§
Dominance
Sample from the dominant labels, and check the dominance of all vertices after each iteration.
Retention
Keep the current label if it is among the dominant ones; only check the vertices whose labels changed.
Fast
Sample from the dominant labels, only checking neighbors (fast).
Trait Implementations§
Source§impl Clone for LpaVariant
impl Clone for LpaVariant
Source§fn clone(&self) -> LpaVariant
fn clone(&self) -> LpaVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LpaVariant
Source§impl Debug for LpaVariant
impl Debug for LpaVariant
impl Eq for LpaVariant
Source§impl From<LpaVariant> for igraph_lpa_variant_t
impl From<LpaVariant> for igraph_lpa_variant_t
Source§fn from(value: LpaVariant) -> igraph_lpa_variant_t
fn from(value: LpaVariant) -> igraph_lpa_variant_t
Converts to this type from the input type.
Source§impl Hash for LpaVariant
impl Hash for LpaVariant
Source§impl PartialEq for LpaVariant
impl PartialEq for LpaVariant
Source§fn eq(&self, other: &LpaVariant) -> bool
fn eq(&self, other: &LpaVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LpaVariant
Auto Trait Implementations§
impl Freeze for LpaVariant
impl RefUnwindSafe for LpaVariant
impl Send for LpaVariant
impl Sync for LpaVariant
impl Unpin for LpaVariant
impl UnsafeUnpin for LpaVariant
impl UnwindSafe for LpaVariant
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