pub struct LeidenResult {
pub membership: Vec<u32>,
pub quality: f64,
pub nb_clusters: u32,
pub n_iterations_run: u32,
pub qualities: Vec<f64>,
}Expand description
Result of a Leiden run.
Fields§
§membership: Vec<u32>Length-vcount vector of compacted community labels in 0..k.
quality: f64Final value of the chosen objective function on membership.
nb_clusters: u32Number of distinct communities (k).
n_iterations_run: u32Number of outer iterations actually executed.
qualities: Vec<f64>Quality value at the end of each outer iteration.
Trait Implementations§
Source§impl Clone for LeidenResult
impl Clone for LeidenResult
Source§fn clone(&self) -> LeidenResult
fn clone(&self) -> LeidenResult
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 LeidenResult
impl RefUnwindSafe for LeidenResult
impl Send for LeidenResult
impl Sync for LeidenResult
impl Unpin for LeidenResult
impl UnsafeUnpin for LeidenResult
impl UnwindSafe for LeidenResult
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