function perm1_cycle_to_canon_test ( )

%*****************************************************************************80
%
%% PERM1_CYCLE_TO_CANON_TEST tests PERM1_CYCLE_TO_CANON.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 6;
  p1 = [ -6, 3, 1, -5, 4, -2 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'PERM1_CYCLE_TO_CANON_TEST\n' );
  fprintf ( 1, '  PERM1_CYCLE_TO_CANON converts a permutation of (1,...,N) from\n' );
  fprintf ( 1, '  cycle to canonical form.\n' );
 
  perm1_print ( n, p1, '  The permutation in cycle form:' );
 
  p2 = perm1_cycle_to_canon ( n, p1 );

  perm1_print ( n, p2, '  The permutation in canonical form:' );

  return
end
