pub struct CommunityDetector { /* private fields */ }Expand description
Community detection using minimum cut
Implementations§
Source§impl CommunityDetector
impl CommunityDetector
Sourcepub fn new(graph: Arc<DynamicGraph>) -> Self
pub fn new(graph: Arc<DynamicGraph>) -> Self
Create a new community detector for the given graph
Sourcepub fn detect(&mut self, min_community_size: usize) -> &[Vec<VertexId>]
pub fn detect(&mut self, min_community_size: usize) -> &[Vec<VertexId>]
Detect communities using recursive minimum cut
Sourcepub fn communities(&self) -> &[Vec<VertexId>]
pub fn communities(&self) -> &[Vec<VertexId>]
Get detected communities
Auto Trait Implementations§
impl Freeze for CommunityDetector
impl !RefUnwindSafe for CommunityDetector
impl Send for CommunityDetector
impl Sync for CommunityDetector
impl Unpin for CommunityDetector
impl !UnwindSafe for CommunityDetector
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more