public class GraphEdgeBetweennessClusterer
extends java.lang.Object
implements org.apache.commons.collections15.Transformer
Constructor and Description |
---|
GraphEdgeBetweennessClusterer(int numEdgesToRemove)
Constructs a new clusterer for the specified graph.
|
GraphEdgeBetweennessClusterer(int numEdgesToRemove,
java.util.Map edgeWeights)
Constructs a new clusterer for the specified graph.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getEdgesRemoved()
Retrieves the list of all edges that were removed (assuming extract(...)
was previously called.
|
java.lang.Object |
transform(java.lang.Object graph)
Finds the set of clusters which have the strongest "community structure".
|
public GraphEdgeBetweennessClusterer(int numEdgesToRemove)
numEdgesToRemove
- the number of edges to be progressively removed
from the graphpublic GraphEdgeBetweennessClusterer(int numEdgesToRemove, java.util.Map edgeWeights)
numEdgesToRemove
- the number of edges to be progressively removed
from the graphedgeWeights
- The map of edgeweightspublic java.lang.Object transform(java.lang.Object graph)
transform
in interface org.apache.commons.collections15.Transformer
g
- the graphpublic java.util.List getEdgesRemoved()