Generative Modelling for Graphs of Molecules and Gene Regulation