A group satisfies PP3 (the permutation property of degree ) if any product of elements remains invariant under some nontrivial permutation of its factors, or equivalently, if has at most one nontrivial commutator of order . A PP3 group is if it is a finite group of exponent at most . There is an algorithm that associates an elementary PP3 group to an arbitrary graph. It follows, for instance, that almost every nontrivial graph automorphism has order a power of and that the first-order theory of (elementary) PP3 groups is hereditarily undecidable.