This question came from our site for professional and enthusiast programmers.

1

Your have not defined your desired goal sufficiently for anyone to be able to help you. Are #1 and #2 your sublists? Are there only 2 sublists? As far as I can tell, you want to divide a list of pairs into two 2-length lists where all elements are equal, which makes no sense. You will want to edit your question.
–
ninjageckoMay 24 '12 at 15:27

@Brett That's the only reasonable interpretation. I'm the editing the question to change && to ||.
–
SzabolcsMay 29 '12 at 16:31

thank you very much for helping me! I used the approach of the first and the second suggestions, since it is mostly related to my research (graph theory), but I am sure that Gather can be a very good alternative.
–
Lady InRedJun 4 '12 at 15:46

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.