51 52 53
# File 'lib/rgraph/graph.rb', line 51 def average_degree degrees.inject(:+) / @nodes.size.to_f end