lib/page_rank/dense.rb
Complex method PageRank::Dense#to_matrix (35.0) Open
Open
def to_matrix
total_out_weights = @out_links.map do |links|
links&.compact&.reduce(:+)
end
Matrix.build(node_count, node_count) do |dest_idx, source_idx|
- Read upRead up
- Exclude checks
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