function edge_degree_test ( )

%*****************************************************************************80
%
%% edge_degree_test() tests edge_degree().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'edge_degree_test():\n' );
  fprintf ( 1, '  edge_degree() determines the degree of each node in a graph.\n' );

  node_num = 5;
  edge_num = 5;
  edge = [ 1, 2, 2, 3, 4; ...
           2, 3, 4, 4, 5 ];

  i4mat_print ( 2, edge_num, edge, '  The edge array:' )

  d = edge_degree ( node_num, edge_num, edge );

  i4vec_print ( node_num, d, '  The degree vector:' );

  return
end
