Browse Source

Update serial_gs_pagerank_functions.c

master
mtzikara 6 years ago
committed by GitHub
parent
commit
5d3b74aae4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      serial_v2/serial_gs_pagerank_functions.c

2
serial_v2/serial_gs_pagerank_functions.c

@ -208,7 +208,7 @@ void matrixVectorMultiplication(int **transitionMatrix, double *previousPagerank
for (int j=i; j<vectorSize; ++j) {
sum2 += transitionMatrix[i][j] * (*pagerankVector)[j];
}
(*pagerankVector)[i] = dampingFactor * sum1+dampingFactor * sum2+(1-dampingFactor);
(*pagerankVector)[i] = dampingFactor * sum1+dampingFactor * sum2;
}
//double normDifference = vectorNorm(previousPagerankVector, vectorSize) -

Loading…
Cancel
Save