Making use of connection matrix in ranking calculations.