Connection from a neuron to another could be done by a separate entity which contains the weights values and info about input and output neuron id.