{
@Override
public LearnerGraph MergeAndDeterminize(LearnerGraph original, StatePair pair)
{
// Check that compatibility score computation gives the same response as if we did merge and computed a difference between the number of states.
ScoreMode origScore = original.config.getLearnerScoreMode();original.config.setLearnerScoreMode(ScoreMode.COMPATIBILITY);
long compatibilityScore = original.pairscores.computePairCompatibilityScore(pair);
original.config.setLearnerScoreMode(origScore);
LearnerGraph outcome = super.MergeAndDeterminize(original, pair);
Assert.assertEquals(compatibilityScore+1,original.getStateNumber()-outcome.getStateNumber());
return outcome;