Correct graph generation