On 27 Jun 2011, at 17:32, Andrew Stewart wrote: > My attempts have revolved around recursively merging hashes but I can't seem to get it quite right... Before you start the merging of hashes, what tree/graph traversal algorithm are you using in the first place?