Pagerank with given node and edges. See: https://levyhsu.com/2019/04/page-rank-in-python/
Sample input file: http://snap.stanford.edu/data/web-Google.html
Format:
'# Comment'
From_node_id(tab)To_node_id
From_node_id(tab)To_node_id
From_node_id(tab)To_node_id
Option:
-f --file | Target file.
-m --matrix | Use tradition matrix mode instead of Graph mode,requires more memory
-p --probability | Probability for jumping to other random webpage. Solves dead-ends and spider traps
-t --processes | Multi-processes for large matrix
Run:
python3 pagerank.py -f web-Google.txt