pub struct FluidOptions {
pub seed: u64,
pub max_iterations: u32,
}Expand description
Full option bag for fluid_communities_with_options.
Fields§
§seed: u64PRNG seed driving the initial seed-vertex selection, the
per-iteration node-order shuffle, and the tie-break amongst
dominant labels. Default 0.
max_iterations: u32Safety cap on the number of outer iterations. Upstream loops
while (running) with no cap; Parés et al. note that
convergence is empirically observed in O(few) iterations, but
adversarial inputs can in principle oscillate, so we expose a
configurable upper bound. Default FLUID_DEFAULT_MAX_ITERATIONS.
Trait Implementations§
Source§impl Clone for FluidOptions
impl Clone for FluidOptions
Source§fn clone(&self) -> FluidOptions
fn clone(&self) -> FluidOptions
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 FluidOptions
impl Debug for FluidOptions
Auto Trait Implementations§
impl Freeze for FluidOptions
impl RefUnwindSafe for FluidOptions
impl Send for FluidOptions
impl Sync for FluidOptions
impl Unpin for FluidOptions
impl UnsafeUnpin for FluidOptions
impl UnwindSafe for FluidOptions
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