Updated GraphData to generate a random graph and to perform updates.