Modelling populations of complex networks