lib/pagerank/pagerank.rb in pagerank-0.2.0 vs lib/pagerank/pagerank.rb in pagerank-0.2.1

- old
+ new

@@ -46,14 +46,14 @@ @score.each do |from, value| if @back_links[from] score = @score[from] @back_links[from].each do |to| - score += @score[to] + score += 0.15 + 0.85 * @score[to] end @score[from] = score else - @score[from] = 0 + @score[from] = 0.15 end end @iterates += 1 # return true if convergence?