Method: PageRank::SparseNative#calculate

Defined in:
lib/page_rank/sparse_native.rb

#calculate(max_iterations: -1,, **_) ⇒ Hash<Object, Float>

Perform the PageRank calculation

Parameters:

  • max_iterations (Fixnum) (defaults to: -1,)

    Maximum number of PageRank iterations to perform (or -1 for no max)

Returns:

  • (Hash<Object, Float>)

    of nodes with rank



16
17
18
# File 'lib/page_rank/sparse_native.rb', line 16

def calculate(max_iterations: -1, **_)
  _calculate(max_iterations, damping, tolerance)
end