minor changes to erdo-renyi