Build a matrix indicating for each pairs of individuals how many intermediates there are in the transmission chain
Useful links