pub struct LabelPropagationOptions<'a> {
pub mode: NeighborMode,
pub initial: Option<&'a [i64]>,
pub fixed: Option<&'a [bool]>,
pub variant: LpaVariant,
}Expand description
Options of Graph::community_label_propagation.
Fields§
§mode: NeighborModeDirection of label propagation in directed graphs (default
NeighborMode::All: ignore directions). Out propagates labels
along the edges, In backwards.
initial: Option<&'a [i64]>Initial labels, one per vertex: a label is an id in 0..vcount, and
negative values mean “unlabeled” (default None: every vertex has its
own label). Label values carry no meaning and may be renumbered; only
co-membership matters.
fixed: Option<&'a [bool]>Which initial labels are fixed (only meaningful with
initial; unlabeled vertices cannot be fixed, and
igraph ignores their flag with a warning). Fixed vertices keep their
co-membership: two fixed vertices end up in the same community iff
they had the same initial label.
variant: LpaVariantAlgorithm variant (default LpaVariant::Dominance).
Trait Implementations§
Source§impl<'a> Clone for LabelPropagationOptions<'a>
impl<'a> Clone for LabelPropagationOptions<'a>
Source§fn clone(&self) -> LabelPropagationOptions<'a>
fn clone(&self) -> LabelPropagationOptions<'a>
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 moreSource§impl<'a> Debug for LabelPropagationOptions<'a>
impl<'a> Debug for LabelPropagationOptions<'a>
Source§impl Default for LabelPropagationOptions<'_>
impl Default for LabelPropagationOptions<'_>
Source§impl<'a> PartialEq for LabelPropagationOptions<'a>
impl<'a> PartialEq for LabelPropagationOptions<'a>
Source§fn eq(&self, other: &LabelPropagationOptions<'a>) -> bool
fn eq(&self, other: &LabelPropagationOptions<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for LabelPropagationOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for LabelPropagationOptions<'a>
impl<'a> RefUnwindSafe for LabelPropagationOptions<'a>
impl<'a> Send for LabelPropagationOptions<'a>
impl<'a> Sync for LabelPropagationOptions<'a>
impl<'a> Unpin for LabelPropagationOptions<'a>
impl<'a> UnsafeUnpin for LabelPropagationOptions<'a>
impl<'a> UnwindSafe for LabelPropagationOptions<'a>
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