Algorithm::HITS - Perl implementation of HITS algorithm


Algorithm-HITS documentation  | view source Contained in the Algorithm-HITS distribution.

Index


NAME

Top

Algorithm::HITS - Perl implementation of HITS algorithm

DESCRIPTION

Top

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

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

USAGE

Top

  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

Top

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

COPYRIGHT AND LICENSE

Top


Algorithm-HITS documentation  | view source Contained in the Algorithm-HITS distribution.