Matlab implementation network model by Assenza et al (2011)