simulating diffusion of adaptation through a social network