public class HITSAlgorithm<K,VV,EV> extends Object implements GraphAlgorithm<K,VV,EV,DataSet<Vertex<K,Tuple2<DoubleValue,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 |
---|---|
DataSet<Vertex<K,Tuple2<DoubleValue,DoubleValue>>> |
run(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 stoppedpublic DataSet<Vertex<K,Tuple2<DoubleValue,DoubleValue>>> run(Graph<K,VV,EV> graph) throws Exception
run
in interface GraphAlgorithm<K,VV,EV,DataSet<Vertex<K,Tuple2<DoubleValue,DoubleValue>>>>
Exception
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.