function disconnected_graph ( )

%*****************************************************************************80
%
%% disconnected_graph() plots a disconnected 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, 'disconnected_graph():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Plot a disconnected graph of eight nodes.\n' );

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

  return
end

