{
LearnerGraph gr=buildLearnerGraph("A-a->B\nA-b->C\nA-c->C\nD-a->C\nD-b->C\nD-d->C\nD-c->A","testBuildMatrix8",config,converter);
final int size =4*5/2;
DoubleMatrix2D matrix=createIdentity(size);
DoubleMatrix1D row=DoubleFactory1D.dense.make(size, 0);
matrix.setQuick(2, 2, 1);matrix.setQuick(4, 4, 1);matrix.setQuick(5, 5, 1);// pairs with zero total outgoing transitions.
matrix.setQuick(0, 0, 3*2);matrix.setQuick(0, 2, -k);matrix.setQuick(0, 5, -2*k);row.setQuick(0, 3);
matrix.setQuick(1, 1, 3*2);
matrix.setQuick(3, 3, 3*2);
matrix.setQuick(6, 6, 3*2);
matrix.setQuick(9, 5, -3*k);matrix.setQuick(9, 0, -k);row.setQuick(9, 4);
matrix.setQuick(6, 4, -k);matrix.setQuick(6, 5, -k);matrix.setQuick(6, 3, -k);row.setQuick(6, 3);
matrix.setQuick(9, 9, 4*2);
matrix.setQuick(8, 8, 4*2);
matrix.setQuick(7, 7, 4*2);
matrix.setQuick(6, 6, 4*2);