Spatio-temporal diffusion mechanisms for adaptation over networks