code: def add_edges(self, edge_list, dataframe=True):
          
          # It might be nice to have an option pass a list of dicts instead of list of tuples
          if not isinstance(edge_list[0], dict):
              edge_list = [{'source': edge_tuple[0],
                            'target': edge_tuple[1],
                            'interaction': edge_tuple[2]}
                           for edge_tuple in edge_list]
          res = self.session.post(self.__url + 'edges', data=json.dumps(edge_list), headers=HEADERS)
          check_response(res)
          edges = res.json()
          if dataframe:
              return pd.DataFrame(edges).set_index(['SUID'])
          else:
              return edges
docs: Add a all edges in edge_list.
          :return: A data structure with Cytoscape SUIDs for the newly-created edges.
          :param edge_list: List of (source, target, interaction) tuples *or*
                            list of dicts with 'source', 'target', 'interaction', 'direction' keys.
          :param dataframe: If dataframe is True (default), return a Pandas DataFrame.
                            If dataframe is False, return a list of dicts with keys 'SUID', 'source' and 'target'.