pub struct FluidResult {
pub membership: Vec<u32>,
pub nb_clusters: u32,
pub n_iterations_run: u32,
}Expand description
Result of fluid_communities / fluid_communities_with_options.
Fields§
§membership: Vec<u32>Per-vertex community label, densely numbered in 0..nb_clusters.
nb_clusters: u32Number of distinct labels actually present. Normally equals the
requested k, but a community can vanish in pathological
graphs; we expose the actual count so downstream code stays
honest.
n_iterations_run: u32Number of outer iterations actually executed (1 ≤ x ≤
max_iterations).
Trait Implementations§
Source§impl Clone for FluidResult
impl Clone for FluidResult
Source§fn clone(&self) -> FluidResult
fn clone(&self) -> FluidResult
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 moreAuto Trait Implementations§
impl Freeze for FluidResult
impl RefUnwindSafe for FluidResult
impl Send for FluidResult
impl Sync for FluidResult
impl Unpin for FluidResult
impl UnsafeUnpin for FluidResult
impl UnwindSafe for FluidResult
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