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, teleportationProbability
addEdgeRequest, addVertexRequest, addVertexRequest, getContext, getMyWorkerIndex, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerContext, getWorkerCount, getWorkerForVertex, initialize, postSuperstep, preSuperstep, removeEdgesRequest, removeVertexRequest, sendMessage, sendMessageToAllEdges, sendMessageToMultipleEdges
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf
setConf
getBroadcast
reduce, reduceMerge
aggregate
getAggregatedValue
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)
RandomWalkComputation
transitionProbability
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)
RandomWalkComputation
recompute
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.