/** * Cleans up after each step. In this case that involves allocating the disappearing potential * (thus maintaining normalization of the scores) according to the node probability priors, and * then calling <code>super.afterStep</code>. */ @Override protected void afterStep() { // distribute disappearing potential according to priors if (disappearing_potential > 0) { for (N v : graph.nodes()) { setOutputValue( v, getOutputValue(v) + (1 - alpha) * (disappearing_potential * getNodePrior(v))); } disappearing_potential = 0; } super.afterStep(); }
/** * Cleans up after each step. In this case that involves allocating the * disappearing potential (thus maintaining normalization of the scores) * according to the vertex probability priors, and then calling * <code>super.afterStep</code>. */ @Override protected void afterStep() { // distribute disappearing potential according to priors if (disappearing_potential > 0) { for (V v : graph.getVertices()) { setOutputValue(v, getOutputValue(v) + (1 - alpha) * (disappearing_potential * getVertexPrior(v))); } disappearing_potential = 0; } super.afterStep(); }
/** * Cleans up after each step. In this case that involves allocating the disappearing * potential (thus maintaining normalization of the scores) according to the vertex * probability priors, and then calling * <code>super.afterStep</code>. */ @Override protected void afterStep() { // distribute disappearing potential according to priors if (disappearing_potential > 0) { for (V v : graph.getVertices()) { setOutputValue(v, getOutputValue(v) + (1 - alpha) * (disappearing_potential * getVertexPrior(v))); } disappearing_potential = 0; } super.afterStep(); }
/** * Cleans up after each step. In this case that involves allocating the disappearing * potential (thus maintaining normalization of the scores) according to the vertex * probability priors, and then calling * <code>super.afterStep</code>. */ @Override protected void afterStep() { // distribute disappearing potential according to priors if (disappearing_potential > 0) { for (V v : graph.getVertices()) { setOutputValue(v, getOutputValue(v) + (1 - alpha) * (disappearing_potential * getVertexPrior(v))); } disappearing_potential = 0; } super.afterStep(); }