Algorithm-PageRank-XS

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

        $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;

lib/Algorithm/PageRank/XS.pm  view on Meta::CPAN

    $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;



( run in 0.895 second using v1.01-cache-2.11-cpan-39bf76dae61 )