String stateBlue, String stateRed, String graphName, boolean checkWithEquals)
{
DirectedSparseGraph g=TestFSMAlgo.buildGraph(machineToMerge, graphName),
g2=(DirectedSparseGraph)g.copy();
Vertex
a = DeterministicDirectedSparseGraph.findVertex(JUConstants.LABEL, new VertexID(stateRed), g),
b = DeterministicDirectedSparseGraph.findVertex(JUConstants.LABEL, new VertexID(stateBlue), g);
Assert.assertNotNull("state "+stateRed+" was not found", a);
Assert.assertNotNull("state "+stateBlue+" was not found", b);
OrigStatePair pairOrig = new OrigStatePair(b,a);
StatePair pairNew1 = new StatePair(DeterministicDirectedSparseGraph.findVertexNamed(new VertexID(stateBlue), g),DeterministicDirectedSparseGraph.findVertexNamed(new VertexID(stateRed), g));
LearnerGraph l = new LearnerGraph(g, testConfig);
StatePair pairNew2 = new StatePair(l.findVertex(new VertexID(stateBlue)),l.findVertex(new VertexID(stateRed)));
LearnerGraph
mergeResultA = new LearnerGraph(RPNIBlueFringeLearnerOrig.mergeAndDeterminize(g, pairOrig),testConfig),
mergeResultB = new LearnerGraph(MergeStates.mergeAndDeterminize(g2, pairNew1,testConfig),testConfig),
mergeResultC = new LearnerGraph(MergeStates.mergeAndDeterminize(l, pairNew2).paths.getGraph(),testConfig),
mergeResultD = new LearnerGraph(MergeStates.mergeAndDeterminize_general(l, pairNew2).paths.getGraph(),testConfig),