As suggested in a code review for issue1171 by Álvaro (https://github.com/aibasel/downward/pull/244/files#r2275936695), I'd like to split the select_merge function of MergeSelector into two: one for the case that the caller provides a set of merge candidates, and one where they don't, in which case all pairs of factors are considered.