Starting debug of the add-regular-edges function.