pagerank/README.md
2025-05-15 20:58:08 +02:00

31 lines
977 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Pagerank algorithm in C.
## build
```
make
```
## usage
Matrix market format can be used with ".mtx" at the end of the input file. Rutherford Boeing format can only be used if the arcs have an explicit value (not an implicit 0 or 1), input file then needs to end in ".rb".
Run binary for a single comparison:
```
./out/pagerank --matrix <path> --epsilon <value> --alpha <value>
```
Python script to generate graphs with matplotlib to compare the Gauß Seidel and power method for pagerank
```
usage: main.py [-h] [--alpha ALPHA] [--max_alpha MAX_ALPHA] [--epsilon EPSILON] [--matrix MATRIX]
Pagerank vs Gauß Seidel execution time depending on α
options:
-h, --help show this help message and exit
--alpha ALPHA number of alpha to test in the range (0,1)
--max_alpha MAX_ALPHA
stay strictly below this alpha
--epsilon EPSILON epsilon value for the convergence
--matrix MATRIX path to the matrix file
```