Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Algorithm::PageRank::XS 0.04

    Download button

    No screenshots available
    Downloads: 425  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Axiak | More programs
    Perl Artistic License / FREE
    August 8th, 2009, 00:06 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Algorithm::PageRank::XS description

    A Fast PageRank implementation

    Algorithm::PageRank::XS is a Perl module that implements a simple PageRank algorithm in C. The goal is to quickly get a vector that is closed to the eigenvector of the stochastic matrix of a graph.

    Algorithm::PageRank does some pagerank calculations, but it's slow and memory intensive. This module was developed to compute pagerank on graphs with millions of arcs. This module will not, however, scale up to quadrillions of arcs (see the TODO).

    SYNOPSYS

     use Algorithm::PageRank::XS;

     my $pr = Algorithm::PageRank::XS->new();

     $pr->graph([
     'John' => 'Joey',
     'John' => 'James',
     'Joey' => 'John',
     'James' => 'Joey',
     ]
     );

     $pr->result();
     # {
     # 'James' => '0.569840431213379',
     # 'Joey' => '1',
     # 'John' => '0.754877686500549'
     # }



     #
     #
     # The following simple program takes up arcs and prints the ranks.
     use Algorithm::PageRank::XS;

     my $pr = Algorithm::PageRank::XS->new();

     while () {
     chomp;
     my ($from, to) = split(/ /, $_);
     $pr->add_arc($from, $to);
     }

     my $r = $pr->results();
     while (my ($name, $rank) = each(%{$r})) {
     print "$name,$rank
    ";
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    PageRank implementation | PageRank algorithm | Perl module | Perl | PageRank | algorithm

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM