Constrained Generation of Semantically Valid Graphs via Regularizing Variational Autoencoders