I have a list of all non-cyclic permutations of n labels. How can I get rid of all elements which are redundant in the sense that they are the inverse of another one. For instance if n=4, the elements {1,2,3,4} and {1,4,3,2} are related by reversal and right rotation by one element. So I want to discard the latter.
Cheers!
DeleteDuplicates[ Permutations[Range[4]], #1 == InversePermutation[#2] &]? – kglr Oct 11 '12 at 13:33InversePermutation[]only works onCycle[]objects... – J. M.'s missing motivation Oct 11 '12 at 13:54reversion and right rotation-InversePermutationis quite unrelated. – kglr Oct 11 '12 at 14:09Cycle[]objects with the associated permutation lists in all the examples in docs, or checkingPermutationProduct[#, InversePermutation[#]]&with cycles and/or lists as input. – kglr Oct 11 '12 at 14:21Ordering[]... – J. M.'s missing motivation Oct 11 '12 at 14:25Permutation-related functions accept both cycles and lists. – kglr Oct 11 '12 at 14:36