pub struct Community {
pub id: usize,
pub entities: Vec<String>,
pub level: usize,
pub parent: Option<usize>,
}Expand description
A community of entities detected by hierarchical Leiden community detection.
Fields§
§id: usizeGlobally unique community id. Communities are stored level by level, so a community’s id also indexes its summary in the parallel summary vector.
entities: Vec<String>Entity ids belonging to this community. Communities above level 0 contain the union of their children’s entities.
level: usizeHierarchy level: 0 is the base Leiden partition; higher levels group communities from the level below (parent-child containment).
parent: Option<usize>Id of the coarser community at level + 1 containing this one.
None when this community has no coarser grouping (or it is at the
top level).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Community
impl RefUnwindSafe for Community
impl Send for Community
impl Sync for Community
impl Unpin for Community
impl UnsafeUnpin for Community
impl UnwindSafe for Community
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