This algorithm takes transactions as input and calculates hub and authority weights for each web page.