function A = moler_adjacency ( )

%*****************************************************************************80
%
%% moler_adjacency() returns the adjacency matrix for Moler's example 3.
%
%  Discussion:
%
%    This matrix appears on page 5 of the reference.
%
%    We added a self-link for node 5, which otherwise has no outlinks.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 September 2024
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Cleve Moler,
%    Experiments with Matlab,
%    Chapter 7: Google PageRank,
%    https://www.mathworks.com/moler/exm/chapters/pagerank.pdf
%
%  Output:
%
%    integer A(6,6), the adjacency matrix.
%
  A = zeros ( 6, 6 );

  A = [ ...
     0, 1, 0, 0, 0, 1 ; ...
     0, 0, 1, 1, 0, 0 ; ...
     0, 0, 0, 1, 1, 1 ; ...
     1, 0, 0, 0, 0, 0 ; ...
     0, 0, 0, 0, 1, 0 ; ...
     1, 0, 0, 0, 0, 0 ];

  return
end
