This is a simple Java example showing that the method transitive() preserves the permutation of teh input array.