code: def _delete_edges(graph, *args, **kwds):
      """Deletes some edges from the graph.
  
      The set of edges to be deleted is determined by the positional and
      keyword arguments. If the function is called without any arguments,
      all edges are deleted. If any keyword argument is present, or the
      first positional argument is callable, an edge sequence is derived by
      calling L{EdgeSeq.select} with the same positional and keyword
      arguments. Edges in the derived edge sequence will be removed.
      Otherwise the first positional argument is considered as follows:
  
      Deprecation notice: C{delete_edges(None)} has been replaced by
      C{delete_edges()} - with no arguments - since igraph 0.8.3.
  
        - C{None} - deletes all edges (deprecated since 0.8.3)
        - a single integer - deletes the edge with the given ID
        - a list of integers - deletes the edges denoted by the given IDs
        - a list of 2-tuples - deletes the edges denoted by the given
          source-target vertex pairs. When multiple edges are present
          between a given source-target vertex pair, only one is removed.
      """
      if len(args) == 0 and len(kwds) == 0:
          return GraphBase.delete_edges(graph)
  
      if len(kwds) > 0 or (
          callable(args[0]) and not isinstance(args[0], EdgeSeq)
      ):
          edge_seq = graph.es(*args, **kwds)
      else:
          edge_seq = args[0]
      return GraphBase.delete_edges(graph, edge_seq)
  
file_path: python-igraph/src/igraph/basic.py
imports: from igraph._igraph import GraphBase
  from igraph.seq import EdgeSeq
  from igraph.utils import deprecated
label_desc: Use image node_id 5 for calling a global function with example usage: _delete_edges(graph) and returns: GraphBase, GraphBase