public final void testGraphConstruction2()
{
confString.setUseOrderedEntrySet(true);config.setUseOrderedEntrySet(true);
LearnerGraph expected = new LearnerGraph(confString);expected.initEmpty();
LearnerGraph graph = buildLearnerGraph("A--a-->B-b->C-c->A-b->B-a-#D","testConstruction2",config,converter);
CmpVertex A = new StringVertex("A"), B = new StringVertex("B"), C = new StringVertex("C");
CmpVertex D = new StringVertex("D");D.setAccept(false);
expected.transitionMatrix.put(A, convertRowToDet(expected,createLabelToStateMap(labelList(new String[] {"a","b"}),
new StringVertex("B"),null), null, A));
expected.transitionMatrix.put(B, convertRowToDet(expected,createLabelToStateMap(labelList(new String[] {"b"}),
new StringVertex("C"),createLabelToStateMap(labelList(new String[] {"a"}),D,null)), null, B));
expected.transitionMatrix.put(C, convertRowToDet(expected,createLabelToStateMap(labelList(new String[] {"c"}),
new StringVertex("A"),null), null, C));
expected.transitionMatrix.put(D, convertRowToDet(expected,createLabelToStateMap(emptyCollectionOfLabels,null,null), null, D));
expected.setInit(expected.findVertex("A"));
assertEquals("A", graph.getInit().getStringId());
assertEquals("incorrect transition set",true,expected.transitionMatrix.equals(graph.transitionMatrix));