| Algorithm-HITS documentation | view source | Contained in the Algorithm-HITS distribution. |
Algorithm::HITS - Perl implementation of HITS algorithm
This module implements the HITS algorithm (Kleinberg's hypertext-induced topic selection).
use Algorithm::HITS; $h = new Algorithm::HITS;
$h->graph( [ 0 => 1, 0 => 2, 1 => 0, 1 => 2, 2 => 1, ] );
Iterate 1000 times.
$h->iterate(1000);
Default value is 1
$h->iterate();
Return hub vector and authority vector in PDL object format.
$h->result();
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);
Thanks goes to Hugo Zanghi for pointing out the bug in normalizing vectors.
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
| Algorithm-HITS documentation | view source | Contained in the Algorithm-HITS distribution. |