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