Would this need to be num_vertices instead of vertices? Let me know if you want help with debugging this. It looks like a great start on getting the random graph to draw but the interpreter is getting hung up on this line.