making changes to the randgraph generator