pub struct LeidenResult {
pub communities: Vec<Community>,
pub modularity: f64,
pub levels: usize,
pub winning_trial: usize,
}Expand description
Canonical weighted Leiden partition and diagnostics.
Fields§
§communities: Vec<Community>Canonically ordered communities.
modularity: f64Final weighted modularity quality.
levels: usizeNumber of refinement and aggregation levels in the winning trial.
winning_trial: usizeZero-based winning trial index.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeidenResult
impl Debug for LeidenResult
Source§impl<'de> Deserialize<'de> for LeidenResult
impl<'de> Deserialize<'de> for LeidenResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LeidenResult
impl PartialEq for LeidenResult
Source§impl Serialize for LeidenResult
impl Serialize for LeidenResult
impl StructuralPartialEq for LeidenResult
Auto 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