The input should be a directed graph in compressed sparse row (CSR) format. The result is an array which shows the number of 2 hop paths. The order of the result is the same as the order of input pairs.