GD<CmpVertex,CmpVertex,LearnerGraphCachedData,LearnerGraphCachedData> gd = new GD<CmpVertex,CmpVertex,LearnerGraphCachedData,LearnerGraphCachedData>();
LearnerGraph graph = new LearnerGraph(config);AbstractPersistence.loadGraph(fileA, graph);addColourAndIncompatiblesRandomly(graph, new Random(0));
LearnerGraph outcome = new LearnerGraph(config);
ChangesRecorder patcher = new ChangesRecorder(null);
gd.computeGD(grA, grB, threadNumber, patcher,config);
ChangesRecorder.applyGD_WithRelabelling(graph, patcher.writeGD(TestGD.createDoc()),outcome);
Assert.assertNull(testDetails(),WMethod.checkM(grB,graph));
Assert.assertEquals(testDetails(),grB.getStateNumber(),graph.getStateNumber());
DifferentFSMException ex= WMethod.checkM_and_colours(grB,outcome,VERTEX_COMPARISON_KIND.DEEP);
Assert.assertNull(testDetails()+ex,WMethod.checkM_and_colours(grB,outcome,VERTEX_COMPARISON_KIND.DEEP));Assert.assertEquals(grB.getStateNumber(),graph.getStateNumber());
Assert.assertEquals(grB,outcome);