Added random graph generation