FullyConnected fc3 = new FullyConnected(leaf1, output, 3, 1);
Util.fillArray(fc3.getConnectionGraph().getElements(), 0.3f);
mlp.addConnection(fc3);
FullyConnected fc4 = new FullyConnected(leaf2, output, 3, 1);
Util.fillArray(fc4.getConnectionGraph().getElements(), 0.4f);
mlp.addConnection(fc4);
mlp.setLayerCalculator(NNFactory.lcWeightedSum(mlp, null));
Matrix i = new Matrix(new float [] {2, 2}, 1);
Set<Layer> calculated = new HashSet<>();