Inference of diffusion and influence network graphs