superneuromat.SNN.get_synapse# SNN.get_synapse(pre_id: int | Neuron, post_id: int | Neuron) → Synapse[source]# Returns the synapse that connects the given pre- and post-synaptic neurons. Parameters: pre_id (int | Neuron, required) post_id (int | Neuron, required) Return type: Synapse Raises: IndexError – If no matching synapse is found. TypeError – When pre_id or post_id is not a Neuron or neuron ID (int).