Method: Bio::Tree#add_node
- Defined in:
- lib/bio/tree.rb
#add_node(node) ⇒ Object
Adds a node to the tree. Returns self. If the node already exists, it does nothing.
402 403 404 405 406 |
# File 'lib/bio/tree.rb', line 402 def add_node(node) _clear_cache @pathway.graph[node] ||= {} self end |