pub struct CommunityDetectionResult {
pub communities: Vec<Community>,
pub modularity: f64,
}Expand description
社区发现结果
Fields§
§communities: Vec<Community>§modularity: f64Implementations§
Source§impl CommunityDetectionResult
impl CommunityDetectionResult
pub fn community_count(&self) -> usize
pub fn largest_community_size(&self) -> usize
pub fn node_community_map(&self) -> HashMap<NodeId, usize>
Trait Implementations§
Source§impl Clone for CommunityDetectionResult
impl Clone for CommunityDetectionResult
Source§fn clone(&self) -> CommunityDetectionResult
fn clone(&self) -> CommunityDetectionResult
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 CommunityDetectionResult
impl Debug for CommunityDetectionResult
Auto Trait Implementations§
impl Freeze for CommunityDetectionResult
impl RefUnwindSafe for CommunityDetectionResult
impl Send for CommunityDetectionResult
impl Sync for CommunityDetectionResult
impl Unpin for CommunityDetectionResult
impl UnsafeUnpin for CommunityDetectionResult
impl UnwindSafe for CommunityDetectionResult
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