code: def next_node
           peer = nil
           if !parent.nil? and parent.respond_to?(:children)
              index = parent.children.index(self)
              peer  = parent.children[index + 1]
           end
           peer
        end
docs: This method retrieves a Node objects next peer node, returning nil
   if the Node has no previous peer.