Vector ranking = new DenseVector(numVertices).assign(1.0 / numVertices);
Vector dampingVector = createDampingVector(numVertices, stayingProbability);
/* power method: iterative transition-matrix times ranking-vector multiplication */
while (numIterations-- > 0) {
ranking = transitionMatrix.times(ranking).plus(dampingVector);
}
persistVector(getConf(), getTempPath(RANK_VECTOR), ranking);
Job vertexWithPageRank = prepareJob(vertexIndexPath, getOutputPath(), SequenceFileInputFormat.class,