david-mccullars/text_rank

View on GitHub
lib/page_rank/sparse.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method PageRank::Sparse#calculate_step (35.4)
Open

    def calculate_step(ranks)
      ranks.keys.each_with_object({}) do |dest, new_ranks|
        sum = 0.0
        Array(@graph[dest]).each do |source|
          sum += ranks[source] * @normalized_weights[source][dest]
Severity: Minor
Found in lib/page_rank/sparse.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status