function graph_representation_test ( )

%*****************************************************************************80
%
%% GRAPH_REPRESENTATION_TEST tests GRAPH_REPRESENTATION.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    24 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../graph_representation' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'GRAPH_REPRESENTATION_TEST:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test GRAPH_REPRESENTATION.\n' );

  node_coordinates = ( load ( 'simple_node_coordinates.txt' ) )';
  [ dim, node_num ] = size ( node_coordinates );
  edge_nodes = ( load ( 'simple_edges.txt' ) )';
  [ two, edge_num ] = size ( edge_nodes );

  i4mat_transpose_print ( 2, edge_num, edge_nodes, ...
    '  The edge node array (transposed):' );
  r8mat_transpose_print ( dim, node_num, node_coordinates,
    '  The node coordinates (transposed):' );

  gr_test01 ( node_num, node_coordinates, edge_num, edge_nodes );
  gr_test02 ( node_num, node_coordinates, edge_num, edge_nodes );
  gr_test03 ( node_num, node_coordinates, edge_num, edge_nodes );
  gr_test04 ( node_num, node_coordinates, edge_num, edge_nodes );
  gr_test05 ( node_num, node_coordinates, edge_num, edge_nodes );
  gr_test06 ( node_num, node_coordinates, edge_num, edge_nodes );
  gr_test07 ( node_num, node_coordinates, edge_num, edge_nodes );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'GRAPH_REPRESENTATION_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../graph_representation' );

  return
end
