class_docstr: !
  @brief Common network description that consists of information about oscillators and connection between them.
class_docstr_tok: ["!","@","brief","Common","network","description","that","consists","of","information","about","oscillators","and","connection","between","them","."]
docstr: !
  @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.
docstr_tok: ["!","@","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","."]
code: def set_connection(self, i, j):
      """!
      @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.
  
      """
  
      if self.structure != conn_type.DYNAMIC:
          raise NameError(
              "Connection between oscillators can be changed only in case of dynamic type."
          )
  
      if self._conn_represent == conn_represent.MATRIX:
          self._osc_conn[i][j] = True
          self._osc_conn[j][i] = True
      else:
          self._osc_conn[i].append(j)
          self._osc_conn[j].append(i)
  
imports: import math
  from enum import IntEnum
label_desc: Use image node_id 15 for calling the network obj's underlying member method code with example usage: obj.set_connection(i, j) without return types