Method: Bio::Tree#each_edge
- Defined in:
- lib/bio/tree.rb
#each_edge ⇒ Object
Iterates over each edges of this tree.
297 298 299 300 301 302 |
# File 'lib/bio/tree.rb', line 297 def each_edge #:yields: source, target, edge @pathway.relations.each do |rel| yield rel.node[0], rel.node[1], rel.relation end self end |