lib/bio/tree.rb in bio-2.0.2 vs lib/bio/tree.rb in bio-2.0.3
- old
+ new
@@ -603,10 +603,10 @@
end
self
end
# Gets path from node1 to node2.
- # Retruns an array of nodes, including node1 and node2.
+ # Returns an array of nodes, including node1 and node2.
# If node1 and/or node2 do not exist, IndexError is raised.
# If node1 and node2 are not connected, NoPathError is raised.
# The result is unspecified for cyclic trees.
def path(node1, node2)
raise IndexError, 'node1 not found' unless @pathway.graph[node1]