public class GSAPageRank<K> extends Object implements org.apache.flink.graph.GraphAlgorithm<K,Double,Double,org.apache.flink.api.java.DataSet<org.apache.flink.graph.Vertex<K,Double>>>
The implementation assumes that each page has at least one incoming and one outgoing link.
| Constructor and Description |
|---|
GSAPageRank(double beta,
int maxIterations)
Creates an instance of the GSA PageRank algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.java.DataSet<org.apache.flink.graph.Vertex<K,Double>> |
run(org.apache.flink.graph.Graph<K,Double,Double> network) |
public GSAPageRank(double beta,
int maxIterations)
The implementation assumes that each page has at least one incoming and one outgoing link.
beta - the damping factormaxIterations - the maximum number of iterationsCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.