parameters: (self, n, m, weight=1.0)
docstring: Adds and edge to a custom topology with an optional weight argument.
  
      USAGE: top.add_edge(n, m, weight=1.0)
      * weight: Edge weight between vertices v2 and v2
docstring_summary: Adds and edge to a custom topology with an optional weight argument.
docstring_tokens: Adds and edge to a custom topology with an optional weight argument .
function: def _custom_add_edge(self, n, m, weight=1.0):
      """
      Adds and edge to a custom topology with an optional weight argument.
  
      USAGE: top.add_edge(n, m, weight=1.0)
      * weight: Edge weight between vertices v2 and v2
      """
  
      if not isinstance(n, int) or not isinstance(m, int):
          raise TypeError("Indices n and m must be integers.")
      if not isinstance(weight, float):
          raise TypeError("Migration probability must be a float.")
  
      arg_list = []
      arg_list.append(n)
      arg_list.append(m)
      arg_list.append(weight)
      self._orig_add_edge(*arg_list)
function_tokens: def _custom_add_edge ( self , n , m , weight = 1.0 ) : if not isinstance ( n , int ) or not isinstance ( m , int ) : raise TypeError ( "Indices n and m must be integers." ) if not isinstance ( weight , float ) : raise TypeError ( "Migration probability must be a float." ) arg_list = [ ] arg_list . append ( n ) arg_list . append ( m ) arg_list . append ( weight ) self . _orig_add_edge ( * arg_list )