{
Configuration conf = config.copy();conf.setTransitionMatrixImplType(STATETREE.STATETREE_SLOWTREE);
LearnerGraph textGraph = buildLearnerGraph("A-a->A-b->B-c->C","testCheckGraphNumeric",config,converter);
LearnerGraph numericGraph = new LearnerGraph(config);CmpVertex newInit = AbstractPathRoutines.addToGraph(numericGraph, textGraph,null);
numericGraph = MergeStates.mergeAndDeterminize_general(numericGraph, new StatePair(newInit,numericGraph.paths.getVertex(new LinkedList<Label>())));
GDLearnerGraph numericNDGraph = new GDLearnerGraph(numericGraph,LearnerGraphND.ignoreRejectStates,false);
CmpVertex A = numericGraph.paths.getVertex(labelList(new String[]{})),
B = numericGraph.paths.getVertex(labelList(new String[]{"b"})),
C = numericGraph.paths.getVertex(labelList(new String[]{"b","c"}));
/* ABC
*A 013
*B 124
*C 345
*/
Assert.assertEquals(0,numericGraph.wmethod.vertexToInt(A,A));
Assert.assertEquals(1,numericGraph.wmethod.vertexToInt(A,B));
Assert.assertEquals(1,numericGraph.wmethod.vertexToInt(B,A));
Assert.assertEquals(0,numericNDGraph.vertexToIntNR(A,A));
Assert.assertEquals(1,numericNDGraph.vertexToIntNR(A,B));
Assert.assertEquals(1,numericNDGraph.vertexToIntNR(B,A));
Assert.assertEquals(3,numericGraph.wmethod.vertexToInt(A,C));
Assert.assertEquals(3,numericGraph.wmethod.vertexToInt(C,A));
Assert.assertEquals(3,numericNDGraph.vertexToIntNR(A,C));
Assert.assertEquals(3,numericNDGraph.vertexToIntNR(C,A));
Assert.assertEquals(2,numericGraph.wmethod.vertexToInt(B,B));
Assert.assertEquals(2,numericNDGraph.vertexToIntNR(B,B));
Assert.assertEquals(4,numericGraph.wmethod.vertexToInt(B,C));
Assert.assertEquals(4,numericGraph.wmethod.vertexToInt(C,B));
Assert.assertEquals(4,numericNDGraph.vertexToIntNR(B,C));
Assert.assertEquals(4,numericNDGraph.vertexToIntNR(C,B));
Assert.assertEquals(5,numericGraph.wmethod.vertexToInt(C,C));
Assert.assertEquals(5,numericNDGraph.vertexToIntNR(C,C));
}