public class PageRank extends Object implements Computation<DoubleValue>
| Modifier and Type | Field and Description |
|---|---|
static double |
ALPHA_DEFAULT_VALUE |
static String |
OPTION_ALPHA |
| Constructor and Description |
|---|
PageRank() |
| 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<DoubleValue> messages) |
void |
compute0(ComputationContext context,
Vertex vertex) |
void |
init(Config config) |
String |
name() |
public static final String OPTION_ALPHA
public static final double ALPHA_DEFAULT_VALUE
public String name()
name in interface Computation<DoubleValue>public String category()
category in interface Computation<DoubleValue>public void compute0(ComputationContext context, Vertex vertex)
compute0 in interface Computation<DoubleValue>public void compute(ComputationContext context, Vertex vertex, Iterator<DoubleValue> messages)
compute in interface Computation<DoubleValue>public void init(Config config)
init in interface Computation<DoubleValue>public void close(Config config)
close in interface Computation<DoubleValue>public void beforeSuperstep(WorkerContext context)
beforeSuperstep in interface Computation<DoubleValue>public void afterSuperstep(WorkerContext context)
afterSuperstep in interface Computation<DoubleValue>Copyright © 2020–2021. All rights reserved.