Designing Random Graph Models Using Variational Autoencoders With Applications to Chemical Design