Guest User

Untitled

a guest
Dec 11th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #ifndef __PAGERANK_H__
  2. #define __PAGERANK_H__
  3.  
  4. #include <assert.h>
  5. #include <pthread.h>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8.  
  9. /* page data structure */
  10. struct page {
  11. char *name; //Store name of page
  12. struct node *inPagesBase; //Pointer to first node of in pages linked list
  13. struct node *outPagesBase; //Pointer to first node of out pages linked list
  14. int noOutPages; //Number of out pages for this particular page.
  15. float previousPValue; //Store the previous p value
  16. float currentPValue; //Store the current p value - to calculate convergence
  17. };
  18.  
  19. /*node for linked list*/
  20. struct node {
  21. char *name; //name of page in this node
  22. struct page *page; //pointer to page
  23. struct node *nextNode; //pointer to next node
  24. };
  25. #endif
Add Comment
Please, Sign In to add comment