# File lib/tree.rb, line 460
    def depth
      return 1 if isLeaf?
      1 + @children.collect { |child| child.depth }.max
    end