Generating new molecules with graph grammar