The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Algorithm::HITS - Perl implementation of HITS algorithm

DESCRIPTION

This module implements the HITS algorithm (Kleinberg's hypertext-induced topic selection).

See also http://www2002.org/CDROM/refereed/643/node1.html

USAGE

  use Algorithm::HITS;

  $h = new Algorithm::HITS;

SET UP GRAPH

  $h->graph(
            [
             0 => 1,
             0 => 2,
             
             1 => 0,
             1 => 2,
             
             2 => 1,
             ]
            );

ITERATE THROUGH COMPUTATION

Iterate 1000 times.

  $h->iterate(1000);

Default value is 1

  $h->iterate();

RETURN RESULT

Return hub vector and authority vector in PDL object format.

  $h->result();

SETTINGS

Set initial authority vector. Vector is normalized to unit Euclidean length.

  $h->set_authority(\@v);

Set initial hub vector. Vector is normalized to unit Euclidean length.

  $h->set_hub(\@v);

ACKNOWLEDGEMENT

Thanks goes to Hugo Zanghi for pointing out the bug in normalizing vectors.

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Yung-chung Lin (a.k.a. xern) <xern@cpan.org>

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself