Method: Bio::Pathway#edges

Defined in:
lib/bio/pathway.rb

#edgesObject

Returns the number of the edges in the graph.



173
174
175
176
177
178
179
# File 'lib/bio/pathway.rb', line 173

def edges
  edges = 0
  @graph.each_value do |v|
    edges += v.size
  end
  edges
end