pub struct LouvainResult {
pub membership: Vec<u32>,
pub modularity: f64,
pub levels: Vec<Vec<u32>>,
pub modularities: Vec<f64>,
}Expand description
Result of a Louvain run.
membership is a length-vcount vector of compacted community
labels (each in 0..k where k is the number of communities at
the final level). modularity is the final modularity score.
levels and modularities record the per-level partitions and
modularity values respectively (length = number of aggregation
rounds + 1).
Fields§
§membership: Vec<u32>Community assignment for each vertex (0-indexed).
modularity: f64Best modularity found.
levels: Vec<Vec<u32>>Per-level membership vectors (one per aggregation round + initial).
modularities: Vec<f64>Modularity at each level.
Trait Implementations§
Source§impl Clone for LouvainResult
impl Clone for LouvainResult
Source§fn clone(&self) -> LouvainResult
fn clone(&self) -> LouvainResult
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 LouvainResult
impl RefUnwindSafe for LouvainResult
impl Send for LouvainResult
impl Sync for LouvainResult
impl Unpin for LouvainResult
impl UnsafeUnpin for LouvainResult
impl UnwindSafe for LouvainResult
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