{
List<StatePair> pairsList = ptaClassifier.buildVerticesToMergeForPath(pathsOfInterest);
LinkedList<AMEquivalenceClass<CmpVertex,LearnerGraphCachedData>> verticesToMerge = new LinkedList<AMEquivalenceClass<CmpVertex,LearnerGraphCachedData>>();
ptaClassifier.graph.pairscores.computePairCompatibilityScore_general(null, pairsList, verticesToMerge);
LearnerGraph merged = MergeStates.mergeCollectionOfVertices(ptaClassifier.graph, null, verticesToMerge);// after merging all paths of interest, we get this graph.
ConsistencyChecker checker = new MarkovClassifier.DifferentPredictionsInconsistency();
final long genScoreThreshold = 1;
int nrOfMergers=0;
List<StatePair> pairsToMerge = new LinkedList<StatePair>();
for(Entry<CmpVertex,Map<Label,CmpVertex>> entry:merged.transitionMatrix.entrySet())
for(Entry<Label,CmpVertex> transition:entry.getValue().entrySet())