function A = moler_inc ( )

%*****************************************************************************80
%
%% moler_inc returns the incidence matrix for 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 GNU LGPL license.
%
%  Modified:
%
%    01 March 2020
%
%  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 incidence 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(5,5) = 1.0;
  A(6,1) = 1.0;

  return
end
