Modelling of complex dynamical networks: from agent-based to continuum models