Skip to content

Commit

Permalink
PageRank changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxman Dhulipala committed Dec 10, 2024
1 parent f35bf4f commit ee435ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions benchmarks/PageRank/PageRank.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ struct PR_Vertex_Reset {
}
};

// Power iteration implementation of PageRank that uses Ligra's edgeMap
// functionality to perform sparse matrix-vector (SpMV) products. The dense
// implementation of edgeMap should be called in every iteration, which will
// require the in-edges of the graph being materialized (this expectation is met
// if using an undirected graph, or if the directed graph has both
// in-/out-edges materialized.
//
// If you are using a directed graph *without* in-edges being materialized, you
// must pass the flag gbbs::dense_forward, which ensures that edgeMap does not
// use the in-edges of the graph.
template <class Graph>
sequence<double> PageRank_edgeMap(Graph& G, double eps = 0.000001,
size_t max_iters = 100, gbbs::flags flags = 0) {
Expand Down

0 comments on commit ee435ff

Please sign in to comment.