public double SumInlinkHubScore(Page page){
  List<String> inLinks=page.getInlinks();
  double hubScore=0;
  for (int i=0; i < inLinks.size(); i++) {
    Page inLink=pTable.get(inLinks.get(i));
    if (inLink != null) {
      hubScore+=inLink.hub;
    }
 else {
      continue;
    }
  }
  return hubScore;
}

public double SumInlinkHubScore ( Page page ) { List < String > inLinks = page . getInlinks ( ) ; double hubScore = 0 ; for ( int i = 0 ; i < inLinks . size ( ) ; i ++ ) { Page inLink = pTable . get ( inLinks . get ( i ) ) ; if ( inLink != null ) { hubScore += inLink . hub ; } else { continue ; } } return hubScore ; }
calculate the authority score of a page by summing the hub scores of that page ' s inlinks .
