Super simple directed graph input to calculate PageRank based on Google-PageRank
To run this program
- Save the program to an easily locatable destination
- Open terminal or command prompt depending on your platform
- Type: python3 .py where filename is pagerank if you did not alter
If you wish to change the input, you must edit the code directly and follow the steps 1-3 You can use other inputs provided, or create your own! There is no user input functionality
Note: This is not how Google calculates PageRank They have many more complex algorithms for ranking pages; this is probably one of the basic ones
The code is based on: Newman, Mark E. J. Networks: An Introduction. Oxford: Oxford U, 2015. Print. Chapter 7.4
This is for Cal Poly Math Senior Project Spring 2017 Credit: Breylor Grout, Sam Lin
Let me know your comments and issues and
Enjoy!