pub struct WalktrapResult {
pub membership: Vec<u32>,
pub nb_clusters: u32,
pub merges: Vec<[u32; 2]>,
pub modularity: Vec<f64>,
}Expand description
Result of walktrap / walktrap_weighted /
walktrap_with_options.
Fields§
§membership: Vec<u32>Per-vertex community label of the best-modularity dendrogram cut,
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_walktrap.
modularity: Vec<f64>Modularity trajectory. modularity[i] is the modularity after
i merges starting from the all-singletons partition. Length =
merges.len() + 1 when the graph has edges. For an edgeless
graph the single entry is NaN, matching the C convention.
Trait Implementations§
Source§impl Clone for WalktrapResult
impl Clone for WalktrapResult
Source§fn clone(&self) -> WalktrapResult
fn clone(&self) -> WalktrapResult
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 WalktrapResult
impl RefUnwindSafe for WalktrapResult
impl Send for WalktrapResult
impl Sync for WalktrapResult
impl Unpin for WalktrapResult
impl UnsafeUnpin for WalktrapResult
impl UnwindSafe for WalktrapResult
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