public class HITSAlgorithm<K,VV,EV> extends Object implements org.apache.flink.graph.GraphAlgorithm<K,VV,EV,org.apache.flink.api.java.DataSet<org.apache.flink.graph.Vertex<K,org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.types.DoubleValue,org.apache.flink.types.DoubleValue>>>>
| Constructor and Description |
|---|
HITSAlgorithm(double convergeThreshold)
Create an instance of HITS algorithm.
|
HITSAlgorithm(int maxIterations)
Create an instance of HITS algorithm.
|
HITSAlgorithm(int maxIterations,
double convergeThreshold)
Creates an instance of HITS algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.java.DataSet<org.apache.flink.graph.Vertex<K,org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.types.DoubleValue,org.apache.flink.types.DoubleValue>>> |
run(org.apache.flink.graph.Graph<K,VV,EV> graph) |
public HITSAlgorithm(int maxIterations)
maxIterations - the maximum number of iterationspublic HITSAlgorithm(double convergeThreshold)
convergeThreshold - convergence threshold for sum of scores to control whether the iteration should be stoppedpublic HITSAlgorithm(int maxIterations,
double convergeThreshold)
maxIterations - the maximum number of iterationsconvergeThreshold - convergence threshold for sum of scores to control whether the iteration should be stoppedCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.