public class GlobalThresholdClusterBuilder<V> extends Object implements ClusterBuilder<V>
| Constructor and Description |
|---|
GlobalThresholdClusterBuilder(double scoreThreshold) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Set<V>> |
cluster(SimilarityGraph<V> graph)
Cluster the vertices given a SimilarityGraph
|
Collection<Set<V>> |
cluster(SimilarityGraph<V> graph,
Collection<Set<V>> startingClusters)
Cluster the vertices in
graph using the startingClusters as a starting point. |
public GlobalThresholdClusterBuilder(double scoreThreshold)
public Collection<Set<V>> cluster(SimilarityGraph<V> graph)
ClusterBuildercluster in interface ClusterBuilder<V>graph - the graphpublic Collection<Set<V>> cluster(SimilarityGraph<V> graph, Collection<Set<V>> startingClusters)
ClusterBuildergraph using the startingClusters as a starting point.
Cluster builders that where the starting clusters have no impact on clustering, such as the
threshold cluster builder, can delegate to the cluster(SimilarityGraph
cluster in interface ClusterBuilder<V>graph - the graphstartingClusters - the clusters to start withCopyright © 2016. All Rights Reserved.