public class WeightedLinkClustering extends LinkClustering implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
KEEP_WEIGHT_VECTORS_PROPERTY |
MINIMUM_EDGE_SIMILARITY_PROPERTY| Constructor and Description |
|---|
WeightedLinkClustering() |
| Modifier and Type | Method and Description |
|---|---|
<E extends WeightedEdge> |
cluster(WeightedGraph<E> graph,
int numClusters,
Properties props)
Computes the similarity of the graph's edges and merges them until the
specified number of clusters has been reached.
|
<E extends WeightedEdge> |
cluster(WeightedGraph<E> graph,
Properties props)
Computes the similarity of the graph's edges using their weights and
merges them to select the final partitioning that maximizes the overall
cluster density.
|
protected <E extends Edge> |
getConnectionSimilarity(Graph<E> graph,
int keystone,
int impost1,
int impost2)
Computes the similarity of the two edges as the Jaccard index of the
neighbors of two impost nodes.
|
cluster, cluster, computeDensitypublic static final String KEEP_WEIGHT_VECTORS_PROPERTY
public <E extends WeightedEdge> MultiMap<Integer,Integer> cluster(WeightedGraph<E> graph, int numClusters, Properties props)
numClusters - the number of clusters to returnpublic <E extends WeightedEdge> MultiMap<Integer,Integer> cluster(WeightedGraph<E> graph, Properties props)
protected <E extends Edge> double getConnectionSimilarity(Graph<E> graph, int keystone, int impost1, int impost2)
LinkClusteringImplementation Note: Subclasses that wish to override this behavior should be aware that this method is likely to be called by multiple threads and therefor should make provisions to be thread safe. In addition, this method may be called more than once per edge pair if the similarity matrix is being computed on-the-fly.
getConnectionSimilarity in class LinkClusteringCopyright © 2012. All Rights Reserved.