pub struct FastGreedyResult {
pub membership: Vec<u32>,
pub nb_clusters: u32,
pub merges: Vec<[u32; 2]>,
pub modularity: Vec<f64>,
}Expand description
Result of fast_greedy_modularity / fast_greedy_modularity_weighted.
Fields§
§membership: Vec<u32>Per-vertex community label of the best-modularity partition,
densified to 0..nb_clusters.
nb_clusters: u32Number of distinct communities in membership.
merges: Vec<[u32; 2]>Merges in dendrogram order. Each row [c1, c2] merges clusters
c1 and c2 into the new cluster n + i where i is the
merge index. Same encoding as
igraph_community_fastgreedy() / Walktrap / EB.
modularity: Vec<f64>Modularity trajectory. modularity[i] is the modularity after
i merges have been applied to the all-singletons start
partition. Length = merges.len() + 1. For an edgeless graph
the single entry is NaN, matching the C convention.
Trait Implementations§
Source§impl Clone for FastGreedyResult
impl Clone for FastGreedyResult
Source§fn clone(&self) -> FastGreedyResult
fn clone(&self) -> FastGreedyResult
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 FastGreedyResult
impl RefUnwindSafe for FastGreedyResult
impl Send for FastGreedyResult
impl Sync for FastGreedyResult
impl Unpin for FastGreedyResult
impl UnsafeUnpin for FastGreedyResult
impl UnwindSafe for FastGreedyResult
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