ChangesRecorder.applyGD(graph1, gd.computeGDToXML(grA, grB, threadNumber, TestGD.createDoc(), rec9,Configuration.getDefaultConfiguration()));
Assert.assertNull(WMethod.checkM(graph1, grB));Assert.assertEquals(grB.getStateNumber(),graph1.getStateNumber());
}
{// check that changes propagated to rec7 are correct.
LearnerGraph graph2 = new LearnerGraph(buildGraph(graphA,name+"A"),config);
ChangesRecorder.applyGD(graph2, rec7.writeGD(TestGD.createDoc()));
Assert.assertNull(WMethod.checkM(graph2, grB));Assert.assertEquals(grB.getStateNumber(),graph2.getStateNumber());
}
{// check that changes propagated to rec4 are correct.
LearnerGraph graph3 = new LearnerGraph(buildGraph(graphA,name+"A"),config);
ChangesRecorder.applyGD(graph3, rec4.writeGD(TestGD.createDoc()));