def set_connection(self, i, j):
if (self.structure != conn_type.DYNAMIC):<EOL><INDENT>raise NameError("<STR_LIT>");<EOL><DEDENT>if (self._conn_represent == conn_represent.MATRIX):<EOL><INDENT>self._osc_conn[i][j] = True;<EOL>self._osc_conn[j][i] = True;<EOL><DEDENT>else:<EOL><INDENT>self._osc_conn[i].append(j);<EOL>self._osc_conn[j].append(i);<EOL><DEDENT>
!
        @brief Couples two specified oscillators in the network with dynamic connections.

        @param[in] i (uint): index of an oscillator that should be coupled with oscillator 'j' in the network.
        @param[in] j (uint): index of an oscillator that should be coupled with oscillator 'i' in the network.

        @note This method can be used only in case of DYNAMIC connections, otherwise it throws expection.