Fix GraphGenerator bug where graph had less edges.