code: def __isub__(graph, other):
      """In-place subtraction (difference).
  
      @see: L{__sub__}"""
      if isinstance(other, int):
          graph.delete_vertices([other])
      elif isinstance(other, tuple) and len(other) == 2:
          graph.delete_edges([other])
      elif isinstance(other, list):
          if len(other) > 0:
              if isinstance(other[0], tuple):
                  graph.delete_edges(other)
              elif isinstance(other[0], (int, str)):
                  graph.delete_vertices(other)
              else:
                  return NotImplemented
      elif isinstance(other, Vertex):
          graph.delete_vertices(other)
      elif isinstance(other, VertexSeq):
          graph.delete_vertices(other)
      elif isinstance(other, Edge):
          graph.delete_edges(other)
      elif isinstance(other, EdgeSeq):
          graph.delete_edges(other)
      else:
          return NotImplemented
      return graph
  
file_path: python-igraph/src/igraph/operators/methods.py
imports: from igraph._igraph import GraphBase, Vertex, Edge
  from igraph.seq import VertexSeq, EdgeSeq
  from igraph.operators.functions import disjoint_union, union, intersection
label_desc: Use image node_id 7 for calling a global function with example usage: __isub__(graph, other) and returns: graph, NotImplemented, NotImplemented