Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __PAGERANK_H__
- #define __PAGERANK_H__
- #include <assert.h>
- #include <pthread.h>
- #include <stdio.h>
- #include <stdlib.h>
- /* page data structure */
- struct page {
- char *name; //Store name of page
- struct node *inPagesBase; //Pointer to first node of in pages linked list
- struct node *outPagesBase; //Pointer to first node of out pages linked list
- int noOutPages; //Number of out pages for this particular page.
- float previousPValue; //Store the previous p value
- float currentPValue; //Store the current p value - to calculate convergence
- };
- /*node for linked list*/
- struct node {
- char *name; //name of page in this node
- struct page *page; //pointer to page
- struct node *nextNode; //pointer to next node
- };
- #endif
Add Comment
Please, Sign In to add comment