The code of the paper "Pairwise-interactions-based Bayesian Inference of Network Structure from Cascades"