Generate pairs until components != 1.