patcher.addRelabelling(VertexID.parseID("A"), VertexID.parseID("U"));
patcher.addRelabelling(VertexID.parseID("C"), VertexID.parseID("R"));
CmpVertex danglingVertex = AbstractLearnerGraph.generateNewCmpVertex(VertexID.parseID("TEST"), cloneConfig);
danglingVertex.setColour(JUConstants.BLUE);
patcher.addVertex(danglingVertex);
Configuration config = Configuration.getDefaultConfiguration().copy();config.setLearnerCloneGraph(false);
LearnerGraphMutator<List<CmpVertex>,LearnerGraphNDCachedData> graphPatcher = new LearnerGraphMutator<List<CmpVertex>,LearnerGraphNDCachedData>(graph,config,null);
ChangesRecorder.loadDiff(graphPatcher, patcher.writeGD(createDoc()), converter);
graphPatcher.removeDanglingStates();
LearnerGraphND result = new LearnerGraphND(Configuration.getDefaultConfiguration());