superneuromat.SNN.get_synapse_id#

SNN.get_synapse_id(pre_id: int | Neuron, post_id: int | Neuron) int | None[source]#

Returns the id of the synapse connecting the given pre- and post-synaptic neurons.

Parameters:
Returns:

The id of the synapse connecting the pre-synaptic -> post-synaptic neurons. If no matching synapse exists, returns None.

Return type:

int | None

Raises:

TypeError – If pre_id or post_id is not a Neuron or neuron ID (int).