function word_to_vertex_test ( )

%*****************************************************************************80
%
%% word_to_vertex_test() tests word_to_vertex().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 December 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'word_to_vertex_test():\n' );
  fprintf ( 1, '  word_to_vertex() converts a boundary word to a vertex list.\n' );

  [ w, p ] = gort_word ( );
  name = 'Gort word';
  word_print ( w, p, name );

  v = word_to_vertex ( w, p );
  name = '  Gort vertex list';

  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', name );
  fprintf ( 1, '\n' );

  vn = size ( v, 1 );

  for i = 1 : vn
    fprintf ( 1, '  %2d:', i );
    for j = 1 : 2
      fprintf ( 1, ' %d', v(i,j) );
    end
    fprintf ( 1, '\n' );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'word_to_vertex_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

