</BUG>
Layer l = nnet.getLayerAt(i);
int layerConnectionCount = 1;
for (Neuron neuron : l.getNeurons()) {
<BUG>Connection[] connections = neuron.getInputConnections();
</BUG>
for (Connection connection : connections) {
weights[totalConnectionCount] = new Point3D.Float(i, layerConnectionCount, (float) connection.getWeight().getValue());
layerConnectionCount++;
totalConnectionCount++;

if (nnet == null) {
throw new RuntimeException("No neural network.");
}
Point3D.Float[] weights = new Point3D.Float[NeurophChartUtilities.getConnectionCount(nnet) + 1];
int totalConnectionCount = 1;
for (int i = 1; i < nnet.getLayers().size(); i++) {
Layer l = nnet.getLayerAt(i);
int layerConnectionCount = 1;
for (Neuron neuron : l.getNeurons()) {
List<Connection> connections = neuron.getInputConnections();
for (Connection connection : connections) {
weights[totalConnectionCount] = new Point3D.Float(i, layerConnectionCount, (float) connection.getWeight().getValue());
layerConnectionCount++;
totalConnectionCount++;
