function five_node_graph ( )

%*****************************************************************************80
%
%% five_node_graph() plots a five node graph.
%
%  Discussion:
%
%    The graph function creates a graph, and the plot function recognizes it,
%    displaying nodes, edges, and numeric node labels.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 August 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'five_node_graph():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Plot graph of five nodes.\n' );

  s = [ 1, 2, 2, 3, 4 ];
  t = [ 4, 3, 4, 5, 5 ];
  G = graph ( s, t )
  plot ( G, 'linewidth', 3, 'nodefontsize', 20, 'markersize', 10 )
%
%  Save a copy as a PNG file.
%
  filename = 'five_node_graph.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'five_node_graph():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

