Saving and restoring all graph variables with the saver class