pub struct LpaOptions {
pub variant: LpaVariant,
pub initial: Option<Vec<i32>>,
pub fixed: Option<Vec<bool>>,
pub seed: u64,
}Expand description
Full option bag for label_propagation_with_options.
Fields§
§variant: LpaVariantAlgorithm variant. Default LpaVariant::Fast.
initial: Option<Vec<i32>>Optional initial labels. None ⇒ every vertex starts as its own
singleton. When Some, length must equal vcount; negative
entries mean “unlabelled” (filled in by the final BFS step);
non-negative entries must satisfy label ≤ vcount - 1.
fixed: Option<Vec<bool>>Optional per-vertex fixed mask. true means the vertex’s label
is frozen for the duration of the algorithm. Only meaningful
together with initial; unlabelled fixed vertices are silently
un-fixed (matches the upstream warning behaviour). Length must
equal vcount.
seed: u64PRNG seed driving the node-order shuffle and the
uniform-random tiebreak among dominant labels. Default 0.
Trait Implementations§
Source§impl Clone for LpaOptions
impl Clone for LpaOptions
Source§fn clone(&self) -> LpaOptions
fn clone(&self) -> LpaOptions
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 LpaOptions
impl Debug for LpaOptions
Auto Trait Implementations§
impl Freeze for LpaOptions
impl RefUnwindSafe for LpaOptions
impl Send for LpaOptions
impl Sync for LpaOptions
impl Unpin for LpaOptions
impl UnsafeUnpin for LpaOptions
impl UnwindSafe for LpaOptions
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