#include #include “pagerank.h” void pagerank(list* plist, int ncores, int npages, int nedges, double dampener) { /* /* int main(void) { /* list* plist = NULL; double dampener; /* read the input then populate settings and the list of pages */ /* run pagerank and output the results */ /* clean up the memory used by the list of pages */ return 0;
#include
#include
#include
#include
to do:
– implement this function
– implement any other necessary functions
– implement any other useful data structures
*/
}
######################################
### DO NOT MODIFY BELOW THIS POINT ###
######################################
*/
######################################################
### DO NOT MODIFY THE MAIN FUNCTION OR HEADER FILE ###
######################################################
*/
int ncores, npages, nedges;
read_input(&plist, &ncores, &npages, &nedges, &dampener);
pagerank(plist, ncores, npages, nedges, dampener);
page_list_destroy(plist);
}