Merge hypergraph map code