Method: Bio::Tree#adjacent_nodes
- Defined in:
- lib/bio/tree.rb
#adjacent_nodes(node) ⇒ Object
Returns an array of adjacent nodes of the given node.
317 318 319 320 |
# File 'lib/bio/tree.rb', line 317 def adjacent_nodes(node) h = @pathway.graph[node] h ? h.keys : [] end |