function e2 = edge_to_boundary ( e )

%*****************************************************************************80
%
%% edge_snap() "snaps" a polyiamond described by its edge list.
%
%  Discussion:
%
%    We "snap" a polyiamond by translating it so that its least I and
%    least J node coordinates are 0.
%
%    The edge list contains the sequence of parallelogram IJ coordinates
%    of the nodes that lie on the boundary of the polyiamond, listed
%    in counterclockwise order.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 November 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer E(EN,2): the edge list of the polyiamond.
%
%  Output:
%
%    integer E2(EN,2): the edge list after snapping.
%
  [ imin, imax, jmin, jmax ] = edge_range ( e );

  e2(:,1) = e(:,1) - imin;
  e2(:,2) = e(:,2) - jmin;

  return
end

