Add the three sides in the set to find unique triangles
s . add ( new Pair < Integer , Pair < Integer , Integer > > ( v . get ( 0 ) , new Pair < Integer , Integer > ( v . get ( 1 ) , v . get ( 2 ) ) ) ) ; } else break ; } }