pub struct Dendrogram {
pub levels: Vec<Partition>,
}Expand description
A hierarchy of community partitions (a dendrogram). levels[0] partitions the
base nodes; levels[k] partitions level k-1’s communities. Round 0 is the
finest grouping; the last round is the coarsest (pyramid level 0).
Fields§
§levels: Vec<Partition>Implementations§
Source§impl Dendrogram
impl Dendrogram
Sourcepub fn rounds(&self) -> usize
pub fn rounds(&self) -> usize
Number of coarsening rounds (0 if the graph had no community structure).
Sourcepub fn community_count(&self, round: usize) -> usize
pub fn community_count(&self, round: usize) -> usize
Distinct community count at round.
Sourcepub fn base_community(&self, node: usize, round: usize) -> usize
pub fn base_community(&self, node: usize, round: usize) -> usize
The community a base node belongs to at the given round, composing
the partitions levels[0..=round].
Trait Implementations§
Source§impl Clone for Dendrogram
impl Clone for Dendrogram
Source§fn clone(&self) -> Dendrogram
fn clone(&self) -> Dendrogram
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 moreAuto Trait Implementations§
impl Freeze for Dendrogram
impl RefUnwindSafe for Dendrogram
impl Send for Dendrogram
impl Sync for Dendrogram
impl Unpin for Dendrogram
impl UnsafeUnpin for Dendrogram
impl UnwindSafe for Dendrogram
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