Method: Bio::Tree#each_edge
- Defined in:
- lib/bio/tree.rb
#each_edge ⇒ Object
Iterates over each edges of this tree.
311 312 313 314 315 316 |
# File 'lib/bio/tree.rb', line 311 def each_edge #:yields: source, target, edge @pathway.relations.each do |rel| yield rel.node[0], rel.node[1], rel.relation end self end |