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