function a = adj3 ( )

%*****************************************************************************80
%
%% ADJ3 returns the adjacency matrix for example 3.
%
%  Discussion:
%
%    This matrix appears on page 5 of the reference.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 September 2015
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Cleve Moler,
%    Experiments with Matlab,
%    Chapter 7: Google PageRank,
%    https://www.mathworks.com/moler/exm/chapters/pagerank.pdf
%
%  Parameters:
%
%    Output, integer A(6,6), the adjacency matrix.
%
  a = zeros ( 6, 6 );

  a(1,2) = 1.0;
  a(1,6) = 1.0;
  a(2,3) = 1.0;
  a(2,4) = 1.0;
  a(3,4) = 1.0;
  a(3,5) = 1.0;
  a(3,6) = 1.0;
  a(4,1) = 1.0;
  a(6,1) = 1.0;

  return
end
