Access object from object within the object : <p>I try to program a small feed-forward neural network in oop java.
I have three different classes called layer, synapse and neuron.
One layer consists of a variable amount of nodes.
Each Synapse has a start and end-neuron and also a weight.
Now I want to access each weight attribute of the ingoing synapses from within the neurons. Somehow I can't wrap my mind around this.
Am I missing something?
I also tried working with a weighted graph, but I don't exactly know how to do it.</p>

<p>Thank you for helping!</p>
