Kludge to avoid infinite loop in edge reordering
Random graph gen tweaks