Generative Modelling of Structurally Constrained Graphs