public class DegreeCentrality extends Object implements Computation<NullValue>
| Modifier and Type | Field and Description |
|---|---|
static String |
OPTION_WEIGHT_PROPERTY |
| Constructor and Description |
|---|
DegreeCentrality() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSuperstep(WorkerContext context) |
void |
beforeSuperstep(WorkerContext context) |
String |
category() |
void |
close(Config config) |
void |
compute(ComputationContext context,
Vertex vertex,
Iterator<NullValue> messages) |
void |
compute0(ComputationContext context,
Vertex vertex) |
void |
init(Config config) |
String |
name() |
public static final String OPTION_WEIGHT_PROPERTY
public String name()
name in interface Computation<NullValue>public String category()
category in interface Computation<NullValue>public void compute0(ComputationContext context, Vertex vertex)
compute0 in interface Computation<NullValue>public void compute(ComputationContext context, Vertex vertex, Iterator<NullValue> messages)
compute in interface Computation<NullValue>public void init(Config config)
init in interface Computation<NullValue>public void close(Config config)
close in interface Computation<NullValue>public void beforeSuperstep(WorkerContext context)
beforeSuperstep in interface Computation<NullValue>public void afterSuperstep(WorkerContext context)
afterSuperstep in interface Computation<NullValue>Copyright © 2020–2022. All rights reserved.