Changed EM to incorporate hyperedges instead of hypernodes