adding theoretical calculations for random graphs