pub struct LeadingEigenvectorResult {
pub membership: Vec<u32>,
pub eigenvalues: Vec<f64>,
pub merges: Vec<(u32, u32)>,
pub modularity: f64,
}Expand description
Result of the leading eigenvector community detection.
Fields§
§membership: Vec<u32>Community assignment for each vertex.
eigenvalues: Vec<f64>Eigenvalue found at each split step (positive means a split occurred; non-positive means the split was rejected).
merges: Vec<(u32, u32)>Merges matrix (same format as dendrogram merges): each entry
(a, b) means communities a and b were merged (in reverse
of the split order). Use with le_community_to_membership.
modularity: f64Final modularity of the partition.
Trait Implementations§
Source§impl Clone for LeadingEigenvectorResult
impl Clone for LeadingEigenvectorResult
Source§fn clone(&self) -> LeadingEigenvectorResult
fn clone(&self) -> LeadingEigenvectorResult
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 LeadingEigenvectorResult
impl RefUnwindSafe for LeadingEigenvectorResult
impl Send for LeadingEigenvectorResult
impl Sync for LeadingEigenvectorResult
impl Unpin for LeadingEigenvectorResult
impl UnsafeUnpin for LeadingEigenvectorResult
impl UnwindSafe for LeadingEigenvectorResult
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