2025-05-16 22:08:07 +02:00
2025-05-16 22:08:07 +02:00
2025-04-18 09:46:23 +02:00
2025-04-18 09:23:45 +02:00
2025-05-16 22:08:07 +02:00
2025-05-15 20:51:36 +02:00
2025-05-15 20:58:08 +02:00

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
Description
pagerank, power method and Gauß-Seidel
Readme BSD-3-Clause-Attribution 76 KiB
Languages
C 79.4%
Python 16.3%
Makefile 4.3%