public class KMeansPlusPlusClusterBuilder<V> extends Object implements ClusterBuilder<V>
| Constructor and Description |
|---|
KMeansPlusPlusClusterBuilder(int numClusters) |
KMeansPlusPlusClusterBuilder(int numClusters,
com.google.common.base.Optional<Long> seed) |
| 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 KMeansPlusPlusClusterBuilder(int numClusters)
public KMeansPlusPlusClusterBuilder(int numClusters,
com.google.common.base.Optional<Long> seed)
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.