public class PageRankWithPriors<V,E> extends AbstractIterativeScorerWithPriors<V,E,java.lang.Double>
PageRank| Modifier and Type | Field and Description |
|---|---|
protected double |
disappearing_potential
Maintains the amount of potential associated with vertices with no out-edges.
|
alpha, vertex_priorsedge_weights, graph, hyperedges_are_self_loops, max_delta, max_iterations, output_reversed, tolerance, total_iterations| Constructor and Description |
|---|
PageRankWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> graph,
org.apache.commons.collections4.Transformer<E,? extends java.lang.Number> edge_weights,
org.apache.commons.collections4.Transformer<V,java.lang.Double> vertex_priors,
double alpha)
Creates an instance with the specified graph, edge weights, vertex priors, and
'random jump' probability (alpha).
|
PageRankWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> graph,
org.apache.commons.collections4.Transformer<V,java.lang.Double> vertex_priors,
double alpha)
Creates an instance with the specified graph, vertex priors, and
'random jump' probability (alpha).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterStep()
Cleans up after each step.
|
protected void |
collectDisappearingPotential(V v)
Collects the "disappearing potential" associated with vertices that have
no outgoing edges.
|
double |
update(V v)
Updates the value for this vertex.
|
getAlpha, getVertexPrior, getVertexPriors, initializeacceptDisconnectedGraph, done, evaluate, getAdjustedIncidentCount, getCurrentValue, getEdgeWeight, getEdgeWeights, getIterations, getMaxIterations, getOutputValue, getTolerance, getVertexScore, isDisconnectedGraphOK, setCurrentValue, setEdgeWeights, setHyperedgesAreSelfLoops, setMaxIterations, setOutputValue, setTolerance, step, swapOutputForCurrent, updateMaxDeltaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVertexScoreprotected double disappearing_potential
public PageRankWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, org.apache.commons.collections4.Transformer<E,? extends java.lang.Number> edge_weights, org.apache.commons.collections4.Transformer<V,java.lang.Double> vertex_priors, double alpha)
graph - the input graphedge_weights - the edge weights, denoting transition probabilities from source to destinationvertex_priors - the prior probabilities for each vertexalpha - the probability of executing a 'random jump' at each steppublic PageRankWithPriors(edu.uci.ics.jung.graph.Hypergraph<V,E> graph, org.apache.commons.collections4.Transformer<V,java.lang.Double> vertex_priors, double alpha)
graph - the input graphvertex_priors - the prior probabilities for each vertexalpha - the probability of executing a 'random jump' at each steppublic double update(V v)
step().update in class AbstractIterativeScorer<V,E,java.lang.Double>v - the vertex whose value is to be updatedprotected void afterStep()
super.afterStep.afterStep in class AbstractIterativeScorer<V,E,java.lang.Double>protected void collectDisappearingPotential(V v)
collectDisappearingPotential in class AbstractIterativeScorer<V,E,java.lang.Double>