pub struct ConnectedComponentsClusterer {
pub config: ClusterConfig,
}Expand description
Connected-components clusterer with weak-edge removal and star pruning.
Algorithm:
- Partition pairs into bands using the supplied
ModelParams. - Build an undirected graph from
AutoMatchpairs only. - Remove edges below
config.within_cluster_min(chain-breaking). - Split oversized components via star pruning.
- Emit one
Entityper non-trivial component (≥ 2 members).
Fields§
§config: ClusterConfigTrait Implementations§
Source§impl Clusterer for ConnectedComponentsClusterer
impl Clusterer for ConnectedComponentsClusterer
fn cluster(&self, pairs: &[ScoredPair], params: &ModelParams) -> Vec<Entity>
Auto Trait Implementations§
impl Freeze for ConnectedComponentsClusterer
impl RefUnwindSafe for ConnectedComponentsClusterer
impl Send for ConnectedComponentsClusterer
impl Sync for ConnectedComponentsClusterer
impl Unpin for ConnectedComponentsClusterer
impl UnsafeUnpin for ConnectedComponentsClusterer
impl UnwindSafe for ConnectedComponentsClusterer
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