Switch to Havel-Hakimi algorithm.