public class ClosenessCentrality extends Object implements Computation<ClosenessMessage>
| Modifier and Type | Field and Description |
|---|---|
static String |
OPTION_SAMPLE_RATE |
static String |
OPTION_WEIGHT_PROPERTY |
| Constructor and Description |
|---|
ClosenessCentrality() |
| Modifier and Type | Method and Description |
|---|---|
String |
category() |
void |
close(Config config) |
void |
compute(ComputationContext context,
Vertex vertex,
Iterator<ClosenessMessage> messages) |
void |
compute0(ComputationContext context,
Vertex vertex) |
void |
init(Config config) |
String |
name() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterSuperstep, beforeSupersteppublic static final String OPTION_WEIGHT_PROPERTY
public static final String OPTION_SAMPLE_RATE
public String name()
name in interface Computation<ClosenessMessage>public String category()
category in interface Computation<ClosenessMessage>public void init(Config config)
init in interface Computation<ClosenessMessage>public void close(Config config)
close in interface Computation<ClosenessMessage>public void compute0(ComputationContext context, Vertex vertex)
compute0 in interface Computation<ClosenessMessage>public void compute(ComputationContext context, Vertex vertex, Iterator<ClosenessMessage> messages)
compute in interface Computation<ClosenessMessage>Copyright © 2020–2021. All rights reserved.