code: def network_from_edgelist(self, edgelist):
          
          teneto.utils.check_TemporalNetwork_input(edgelist, 'edgelist')
          if len(edgelist[0]) == 4:
              colnames = ['i', 'j', 't', 'weight']
          elif len(edgelist[0]) == 3:
              colnames = ['i', 'j', 't']
          self.network = pd.DataFrame(edgelist, columns=colnames)
          self._update_network()
docs: Defines a network from an array.
  
          Parameters
          ----------
          edgelist : list of lists.
              A list of lists which are 3 or 4 in length. For binary networks each sublist should be [i, j ,t] where i and j are node indicies and t is the temporal index.
              For weighted networks each sublist should be [i, j, t, weight].