Modeling sleep modes gains with random graphs