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 Finds neighbors of the oscillator with specified index.
  
  @param[in] index (uint): index of oscillator for which neighbors should be found in the network.
  
  @return (list) Indexes of neighbors of the specified oscillator.
docstr_tok: ["!","@","brief","Finds","neighbors","of","the","oscillator","with","specified","index",".","@","param","[","in","]","index","(","uint",")",":","index","of","oscillator","for","which","neighbors","should","be","found","in","the","network",".","@","return","(","list",")","Indexes","of","neighbors","of","the","specified","oscillator","."]
code: def get_neighbors(self, index):
      """!
      @brief Finds neighbors of the oscillator with specified index.
  
      @param[in] index (uint): index of oscillator for which neighbors should be found in the network.
  
      @return (list) Indexes of neighbors of the specified oscillator.
  
      """
  
      if self._conn_represent == conn_represent.LIST:
          return self._osc_conn[index]
          # connections are represented by list.
      elif self._conn_represent == conn_represent.MATRIX:
          return [
              neigh_index
              for neigh_index in range(self._num_osc)
              if self._osc_conn[index][neigh_index] == True
          ]
      else:
          raise NameError(
              "Unknown type of representation of connections"
          )
  
imports: import math
  from enum import IntEnum
label_desc: Use image node_id 16 for calling the network obj's underlying member method code with example usage: obj.get_neighbors(index) and returns: self, unknown