long numVertices = ConfigUtils.asLong("pageRank.numVertices", parameters);
if (currentIteration > 1) {
PageRankStats stats = (PageRankStats) getIterationRuntimeContext().getPreviousIterationAggregate(CustomCompensatableDotProductCoGroup.AGGREGATOR_NAME);
uniformRank = 1d / (double) numVertices;
double lostMassFactor = (numVertices - stats.numVertices()) / (double) numVertices;
rescaleFactor = (1 - lostMassFactor) / stats.rank();
}
}