merging HM2 graphs