Accola theorem on hyperelliptic graphs