Open cam626 opened 5 years ago
All graph related functions should be found in Webgraph class addLink() function takes in the url, create a node based on that, and add to the graph. addConnection() takes in two urls, it adds the nodes to the graph if not found. Then it adds the edge into the adj matrix
I have just pushed another commit on my branch that implements the webgraph into the API. Adding nodes and edges seems to be working fine but I may be using the rank updater wrong because the output to indexing says that all of the ranks are 1. Can one of you take a look? The relevant calls are in listener.cpp.
I haven't fully tested the rank updater yet, I will definitely look into it.
The updateRank function now should correctly update the pagerank. Previous problems were caused by some incorrect copy and incorrect type, and the problems are fixed. Small scale rank update test was successful.
I have finished the API for the incoming information and most of the outgoing information but I cannot finish everything until I have the Graph structure to get information from. I have a few questions: