K - graph ID typeVV - vertex value typeEV - edge value typepublic class HITS<K,VV,EV> extends GraphAlgorithmWrappingDataSet<K,VV,EV,HITS.Result<K>>
This algorithm can be configured to terminate either by a limit on the number of iterations, a convergence threshold, or both.
See http://www.cs.cornell.edu/home/kleinber/auth.pdf
| Modifier and Type | Class and Description |
|---|---|
static class |
HITS.Result<T>
A result for the HITS algorithm.
|
parallelism| Constructor and Description |
|---|
HITS(double convergenceThreshold)
Hyperlink-Induced Topic Search with a convergence threshold.
|
HITS(int iterations)
Hyperlink-Induced Topic Search with a fixed number of iterations.
|
HITS(int maxIterations,
double convergenceThreshold)
Hyperlink-Induced Topic Search with a convergence threshold and a maximum
iteration count.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
mergeConfiguration(GraphAlgorithmWrappingBase other)
Merge the other configuration into this algorithm's after the call to
GraphAlgorithmWrappingBase.canMergeConfigurationWith(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase) has checked that the configurations
can be merged. |
org.apache.flink.api.java.DataSet<HITS.Result<K>> |
runInternal(Graph<K,VV,EV> input)
The implementation of the algorithm, renamed from
GraphAlgorithm.run(Graph). |
equals, hashCode, runcanMergeConfigurationWith, getAlgorithmName, setParallelismpublic HITS(int iterations)
iterations - fixed number of iterationspublic HITS(double convergenceThreshold)
convergenceThreshold - convergence threshold for sum of scorespublic HITS(int maxIterations,
double convergenceThreshold)
maxIterations - maximum number of iterationsconvergenceThreshold - convergence threshold for sum of scoresprotected void mergeConfiguration(GraphAlgorithmWrappingBase other)
GraphAlgorithmWrappingBaseGraphAlgorithmWrappingBase.canMergeConfigurationWith(org.apache.flink.graph.utils.proxy.GraphAlgorithmWrappingBase) has checked that the configurations
can be merged.mergeConfiguration in class GraphAlgorithmWrappingBase<K,VV,EV,org.apache.flink.api.java.DataSet<HITS.Result<K>>>other - the algorithm from which to merge configurationGraphAlgorithmWrappingBase.canMergeConfigurationWith(GraphAlgorithmWrappingBase)public org.apache.flink.api.java.DataSet<HITS.Result<K>> runInternal(Graph<K,VV,EV> input) throws Exception
GraphAlgorithmWrappingDataSetGraphAlgorithm.run(Graph).runInternal in class GraphAlgorithmWrappingDataSet<K,VV,EV,HITS.Result<K>>input - the input graphExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.