function graph_adj_to_graph_arc_test ( )

%*****************************************************************************80
%
%% graph_adj_to_graph_arc_test() tests graph_adj_to_graph_arc().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    10 April 2026
%
%  Author:
%
%    John Burkardt
%
  ADJ = [ ...
    0,1,1,1,1,1,1,1,0,0,0,0,0; ...
    1,0,0,0,1,1,0,1,0,0,0,0,0; ...
    1,0,0,1,0,0,1,0,0,0,0,0,0; ...
    1,0,1,0,0,0,0,0,0,0,0,0,0; ...
    1,1,0,0,0,0,0,0,0,0,0,0,0; ...
    1,1,0,0,0,0,0,0,0,0,0,0,0; ...
    1,0,1,0,0,0,0,0,0,0,0,0,0; ...
    1,1,0,0,0,0,0,0,1,0,0,0,0; ...
    0,0,0,0,0,0,0,1,0,1,0,0,1; ...
    0,0,0,0,0,0,0,0,1,0,1,1,1; ...
    0,0,0,0,0,0,0,0,0,1,0,1,0; ...
    0,0,0,0,0,0,0,0,0,1,1,0,0; ...
    0,0,0,0,0,0,0,0,1,1,0,0,0 ];

  node_num = size ( ADJ, 1 );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'graph_adj_to_graph_arc_test():\n' );
  fprintf ( 1, '  graph_adj_to_graph_arc() converts a graph adjacency\n' );
  fprintf ( 1, '  representation of a graph to graph arc format.\n' );

  graph_adj_print ( ADJ, '  The graph adjacency matrix:' );

  edge_num = sum ( sum ( ADJ ) );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of edges is %d\n', edge_num );

  [ inode, jnode ] = graph_adj_to_graph_arc ( ADJ );

  graph_arc_print ( inode, jnode, '  The graph arc representation:' )

  return
end
