Changed ER p to graph density in comments.