public final void testWriteAndLoad3()
{
LearnerGraph graph = new LearnerGraph(buildGraph("A-a->B-a-#C\nA-d-#D\nA-c->A","testAddTransitions4"),Configuration.getDefaultConfiguration());
ChangesRecorder patcher = new ChangesRecorder(null);
patcher.addTransition(graph.findVertex("B"), "c", graph.findVertex("B"));
patcher.removeTransition(graph.findVertex("A"), "a", graph.findVertex("B"));
patcher.addTransition(graph.findVertex("A"), "q", graph.findVertex("B"));
patcher.setInitial(graph.findVertex("A"));
ChangesRecorder.applyGD(graph, patcher.writeGD(createDoc()));
LearnerGraph expected = new LearnerGraph(buildGraph("A-q->B-a-#C\nA-d-#D\nA-c->A\nB-c->B","testWriteAndLoad1"),Configuration.getDefaultConfiguration());
WMethod.checkM_and_colours(expected, graph, VERTEX_COMPARISON_KIND.DEEP);