/pagerank

PageRank

Primary LanguagePython

pagerank

PageRank

In this project, I made 4 files. "graph_generate.py" contains the methods to create a directed graph, you can use draw_network(dg) to see the network that you create. "matrix_generate.py" contains the methods to transform the network into adjacency matrix, and makes the initial vector of PR score. "pagerank.py" is the key file that contains the PageRank algorithm. You can use method "draw" to know how the scores converge. "main.py" is the main function.