def ancestors
      node  = self
      nodes = []
      nodes << node = node.parent while node.parent
      nodes
    end
def ancestors
      node  = self
      nodes = []
      nodes << node = node.parent while node.parent
      nodes
    end
Returns list of ancestors, starting from parent until root.

   subchild1.ancestors # => [child1, root]