Structure and dynamics of diffusion networks