Compartmental Modelling with Networks