Modelling Markovian epidemic and information diffusion over adaptive networks