pub struct LabelPropagation;Expand description
基于标签传播的社区发现
Implementations§
Source§impl LabelPropagation
impl LabelPropagation
Sourcepub fn detect(
graph: &DirectedGraph,
max_iterations: usize,
) -> CommunityDetectionResult
pub fn detect( graph: &DirectedGraph, max_iterations: usize, ) -> CommunityDetectionResult
执行标签传播算法
每个节点初始化为唯一标签,迭代传播直到收敛。
Auto Trait Implementations§
impl Freeze for LabelPropagation
impl RefUnwindSafe for LabelPropagation
impl Send for LabelPropagation
impl Sync for LabelPropagation
impl Unpin for LabelPropagation
impl UnsafeUnpin for LabelPropagation
impl UnwindSafe for LabelPropagation
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