class_docstr: RedisGraph Commands
class_docstr_tok: ["RedisGraph","Commands"]
docstr: Commit the graph and reset the edges and the nodes to zero length.
docstr_tok: ["Commit","the","graph","and","reset","the","edges","and","the","nodes","to","zero","length","."]
code: def flush(self):
      """
      Commit the graph and reset the edges and the nodes to zero length.
      """
      self.commit()
      self.nodes = {}
      self.edges = []
  
file_path: catboost/contrib/python/redis/py3/redis/commands/graph/commands.py
imports: from redis import DataError
  from redis.exceptions import ResponseError
  from .exceptions import VersionMismatchException
  from .execution_plan import ExecutionPlan
  from .query_result import AsyncQueryResult, QueryResult
label_desc: Use image node_id 5 for calling the GraphCommands obj's underlying member method code with example usage: obj.flush() without return types