How neurons distinguish necessary contacts from unnecessary ones

Nerve cells are by default ready to form many interneuron contacts, but external stimuli help to leave only those synapses that are really needed.