Skip to content

Commit 0826562

Browse files
committed
Docs for PageRank
1 parent 858cd82 commit 0826562

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/GraphBLAS-sharp.Backend/Algorithms/Algorithms.fs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ module Algorithms =
2121
let run = SSSP.run
2222

2323
module PageRank =
24+
/// <summary>
25+
/// Computes PageRank of the given matrix.
26+
/// Matrix should be prepared in advance using "PageRank.prepareMatrix" method.
27+
/// Accepts accuracy as a parameter which determines how many iterations will be performed.
28+
/// Values of accuracy lower than 1e-06 are not recommended since the process may never stop.
29+
/// </summary>
30+
/// <example>
31+
/// <code>
32+
/// let preparedMatrix = PageRank.prepareMatrix clContext workGroupSize queue matrix
33+
/// let accuracy = 1e-05
34+
/// let pageRank = PageRank.run clContext workGroupSize queue preparedMatrix accuracy
35+
/// </code>
36+
/// </example>
2437
let run = PageRank.run
2538

39+
/// <summary>
40+
/// Converts matrix representing a graph to a format suitable for PageRank algorithm.
41+
/// </summary>
2642
let prepareMatrix = PageRank.prepareMatrix

0 commit comments

Comments
 (0)