# File lib/graphviz/math/matrix.rb, line 201 def sum_of_line(n) line(n).inject(0){|sum,item| sum + item} end