Complete the Graph_Generator Class