added random graph generator