making the variables global in the random graph