function [ auth, hub ] = hits_svd ( A )

%*****************************************************************************80
%
%% hits_svd uses the singular value decomposition for the HITS algorithm.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 March 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A(M,N), the system matrix.
%
%  Output:
%
%    real AUTH(N), the authority indices.
%
%    real HUB(N), the hub indices.
%
  [ U, S, V ] = svd ( A );
  hub = abs ( U(:,1) );
  auth = abs ( V(:,1) );

  return
end
