config.setGdScoreComputationAlgorithm(GDScoreComputationAlgorithmEnum.SCORE_TESTSET);
LearnerGraph gr=new LearnerGraph(FsmParser.buildGraph(NDGraph, "testCount_computeGraphs"), config);
GDLearnerGraph ndGraph = new GDLearnerGraph(gr,LearnerGraphND.ignoreRejectStates, true);
ndGraph.computeWalkSequences(new StateBasedRandom(80), 1);
DetermineDiagonalAndRightHandSide matcher = ndGraph.new DDRH_BCR();
getMatcherValue(gr,ndGraph,ndGraph.matrixForward, matcher,"C","D");
Assert.assertEquals(100./3.,matcher.getRightHandSide(),Configuration.fpAccuracy);
Assert.assertEquals(2*2,matcher.getDiagonal(),Configuration.fpAccuracy);
getMatcherValue(gr,ndGraph,ndGraph.matrixForward, matcher,"E","B");
Assert.assertEquals(100,matcher.getRightHandSide(),Configuration.fpAccuracy);
Assert.assertEquals(2*2,matcher.getDiagonal(),Configuration.fpAccuracy);
}