pub struct CommunityDetector;Implementations§
Source§impl CommunityDetector
impl CommunityDetector
pub fn detect( &self, nodes: &[Node], edges: &[Edge], resolution: f64, ) -> Result<Vec<Community>>
pub fn detect_weighted( &self, nodes: &[Node], edges: &[Edge], resolution: f64, ) -> Result<Vec<Community>>
pub fn exclude_hubs( &self, nodes: &[Node], edges: &[Edge], max_degree: usize, ) -> (Vec<Node>, Vec<Edge>, Vec<Node>)
pub fn split_oversized( &self, nodes: &[Node], edges: &[Edge], communities: Vec<Community>, max_size: usize, ) -> Vec<Community>
pub fn remap_communities_to_previous( &self, current: &[Community], previous: &[Community], ) -> HashMap<usize, usize>
Auto Trait Implementations§
impl Freeze for CommunityDetector
impl RefUnwindSafe for CommunityDetector
impl Send for CommunityDetector
impl Sync for CommunityDetector
impl Unpin for CommunityDetector
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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