pub struct CommunityVoronoiResult {
pub membership: Vec<u32>,
pub generators: Vec<VertexId>,
pub modularity: Option<f64>,
}Expand description
Result of community_voronoi.
membership[v] is a contiguous 0..k community id for every
vertex; unreachable vertices (which can only arise in disconnected
graphs and only for mode = In / Out in some configurations)
keep the C reference’s behaviour and get assigned to whichever
generator the underlying crate::voronoi picked.
generators is the list of vertex ids picked as Voronoi
generators, in the order they were picked. Its length equals the
number of distinct communities.
modularity is the Newman-Girvan modularity of membership under
weights (or unit weights if weights = None), with the
directness implied by mode. None for an empty graph.
Fields§
§membership: Vec<u32>§generators: Vec<VertexId>§modularity: Option<f64>Trait Implementations§
Source§impl Clone for CommunityVoronoiResult
impl Clone for CommunityVoronoiResult
Source§fn clone(&self) -> CommunityVoronoiResult
fn clone(&self) -> CommunityVoronoiResult
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 CommunityVoronoiResult
impl Debug for CommunityVoronoiResult
Source§impl PartialEq for CommunityVoronoiResult
impl PartialEq for CommunityVoronoiResult
Source§fn eq(&self, other: &CommunityVoronoiResult) -> bool
fn eq(&self, other: &CommunityVoronoiResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommunityVoronoiResult
Auto Trait Implementations§
impl Freeze for CommunityVoronoiResult
impl RefUnwindSafe for CommunityVoronoiResult
impl Send for CommunityVoronoiResult
impl Sync for CommunityVoronoiResult
impl Unpin for CommunityVoronoiResult
impl UnsafeUnpin for CommunityVoronoiResult
impl UnwindSafe for CommunityVoronoiResult
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