function polyiamond_vertex_print ( v, label )

%*****************************************************************************80
%
%% polyiamond_vertex_print prints the vertices bounding a polyiamond.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 September 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer V(M,2), the IJ parallelogram point coordinates of the 
%    vertices bounding the polyiamond.  
%
%    string LABEL, a label to be printed.  
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', label );
  fprintf ( 1, '\n' );

  [ m, n ] = size ( v );

  if ( n ~= 2 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'polyiamond_vertex_print - Fatal error!\n' );
    fprintf ( 1, '  Input array V has column dimension %d, should be 2.\n', n );
    error ( 'polyiamond_vertex_print - Fatal error!' );
  end

  if ( m <= 0 )
    fprintf ( 1, '  [ Null array ]\n' );
  else
    for i = 1 : m
      fprintf ( 1, ' ' );
      for j = 1 : 2
        fprintf ( 1, ' %d', v(i,j) );
      end
      fprintf ( 1, '\n' );
    end
  end

  return
end
