Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>> Google's entire PageRank computation can be done with a handful of iterations around a single call to GraphBLAS, using what I call the "PageRank semiring."

The author has an example of PageRank in C:

https://github.com/DrTimothyAldenDavis/GraphBLAS/blob/stable...

I assume his "single call" statement refers to the MATLAB version:

https://github.com/DrTimothyAldenDavis/GraphBLAS/blob/stable...

    for i = 1:20
        r = ((c*r) * C) + a * sum (r) ;
    end
The MATLAB interface uses overloaded operators and methods on a GraphBLAS matrix object.


I was referring to the PageRank_semiring in https://github.com/DrTimothyAldenDavis/GraphBLAS/blob/5e569f... . I wasn't counting the test for the termination condition -- in the statement in my interview, I assumed the # of iterations could just be given. I would guess that's the case for the Google PageRank computation, since the graph doesn't change so much each month when they compute it, they probably know how many iterations they need.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: