Generate Random Graph Method