K
- the Vertex ID typepublic class CommunityDetection<K> extends Object implements GraphAlgorithm<K,Long,Double,Graph<K,Long,Double>>
Modifier and Type | Class and Description |
---|---|
static class |
CommunityDetection.AddScoreToVertexValuesMapper<K> |
static class |
CommunityDetection.LabelMessenger<K> |
static class |
CommunityDetection.RemoveScoreFromVertexValuesMapper<K> |
static class |
CommunityDetection.VertexLabelUpdater<K> |
Constructor and Description |
---|
CommunityDetection(Integer maxIterations,
Double delta)
Creates a new Community Detection algorithm instance.
|
public CommunityDetection(Integer maxIterations, Double delta)
maxIterations
- The maximum number of iterations to run.delta
- The hop attenuation parameter. Its default value is 0.5.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.