add setgraphdogversion function