Scaffold-based molecular design with a graph generative model