Critical behavior of mean-field spin glasses on a dilute random graph