{
LearnerGraph gr=new LearnerGraph(buildGraph("A-a->B\nA-b->C\nA-c->C\nD-a->C\nD-b->C\nD-d->C\nD-c->A","testAddToBuffer8"),config);
final int size =4*5/2;
DoubleMatrix2D matrix=DoubleFactory2D.sparse.identity(size);
DoubleMatrix1D row=DoubleFactory1D.dense.make(size, 0);
matrix.setQuick(0, 0, 3);matrix.setQuick(0, 2, -k);matrix.setQuick(0, 5, -2*k);row.setQuick(0, 3);
matrix.setQuick(1, 1, 3);
matrix.setQuick(3, 3, 3);
matrix.setQuick(6, 6, 3);
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);
matrix.setQuick(8, 8, 4);
matrix.setQuick(7, 7, 4);
matrix.setQuick(6, 6, 4);