Fixed generate_graph() to ensure fresh points with each graph generation.