Framework for diffusion processes in (Social) Networks