code: def _clear(graph):
      """Clears the graph, deleting all vertices, edges, and attributes.
  
      @see: L{GraphBase.delete_vertices} and L{Graph.delete_edges}.
      """
      graph.delete_vertices()
      for attr in graph.attributes():
          del graph[attr]
  
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 6 for calling a global function with example usage: _clear(graph) without return types