function [ imin, imax, jmin, jmax ] = edge_range ( e )

%*****************************************************************************80
%
%% edge_range() determines the range of a polyiamond from its edge list.
%
%  Discussion:
%
%    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:
%
%    29 October 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer E(EN,2): the list of edge nodes.
%
%  Output:
%
%    integer IMIN, IMAX, JMIN, JMAX: the I and J ranges of the polyiamond.
%
  imin = min ( e(:,1) );
  imax = max ( e(:,1) );
  jmin = min ( e(:,2) );
  jmax = max ( e(:,2) );

  return
end

