public class PageRankComputation extends RandomWalkComputation<org.apache.hadoop.io.NullWritable>
| Constructor and Description |
|---|
PageRankComputation() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
recompute(Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable> vertex,
Iterable<org.apache.hadoop.io.DoubleWritable> partialRanks,
double teleportationProbability)
Perform a single step of a random walk computation.
|
protected double |
transitionProbability(Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable> vertex,
double stateProbability,
Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable> edge)
Compute the probability of transitioning to a neighbor vertex
|
compute, getDanglingProbability, getPreviousCumulativeProbability, initialProbability, teleportationProbabilityaddEdgeRequest, addVertexRequest, addVertexRequest, getContext, getMyWorkerIndex, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerContext, getWorkerCount, getWorkerForVertex, initialize, postSuperstep, preSuperstep, removeEdgesRequest, removeVertexRequest, sendMessage, sendMessageToAllEdges, sendMessageToMultipleEdgesaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfsetConfgetBroadcastreduce, reduceMergeaggregategetAggregatedValueprotected double transitionProbability(Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable> vertex, double stateProbability, Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable> edge)
RandomWalkComputationtransitionProbability in class RandomWalkComputation<org.apache.hadoop.io.NullWritable>vertex - VertexstateProbability - current steady state probability of the vertexedge - edge to neighborprotected double recompute(Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable> vertex, Iterable<org.apache.hadoop.io.DoubleWritable> partialRanks, double teleportationProbability)
RandomWalkComputationrecompute in class RandomWalkComputation<org.apache.hadoop.io.NullWritable>vertex - VertexpartialRanks - Messages received in the previous step.teleportationProbability - Probability of teleporting to another
vertex.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.