@Test
public void testGraphConstruction4()
{
LearnerGraph expected = new LearnerGraph(confString);expected.initEmpty();
LearnerGraph graph = new LearnerGraph(buildGraph("A--a-->B<-b--D-c->A-b->A-c->A\nB-d->B-p-#C\nB-q-#C\nB-r-#C\n","testConstruction4"),config);
CmpVertex A = new StringVertex("A"), B = new StringVertex("B"), C = new StringVertex("C"),D = new StringVertex("D");
C.setAccept(false);
expected.transitionMatrix.put(A, createLabelToStateMap(Arrays.asList(new String[] {"b","c"}),new StringVertex("A"),createLabelToStateMap(Arrays.asList(new String[] {"a"}),B,null)));
expected.transitionMatrix.put(B, createLabelToStateMap(Arrays.asList(new String[] {"d"}),B,createLabelToStateMap(Arrays.asList(new String[] {"r","p","q"}),C,null)));
expected.transitionMatrix.put(D, createLabelToStateMap(Arrays.asList(new String[] {"b"}),B, createLabelToStateMap(Arrays.asList(new String[] {"c"}),A,null)));
expected.transitionMatrix.put(C, createLabelToStateMap(Collections.EMPTY_LIST,null,null));
expected.init = expected.findVertex("A");
expected.findVertex("A").setAccept(true);