Started on the add-regular-edges function.