class_docstr: Graph, collection of nodes and edges.
class_docstr_tok: ["Graph",",","collection","of","nodes","and","edges","."]
docstr: Create a new graph.
docstr_tok: ["Create","a","new","graph","."]
code: def __init__(self, client, name=random_string()):
      """
      Create a new graph.
      """
      warnings.warn(
          DeprecationWarning(
              "RedisGraph support is deprecated as of Redis Stack 7.2 \
                  (https://redis.com/blog/redisgraph-eol/)"
          )
      )
      self.NAME = name  # Graph key
      self.client = client
      self.execute_command = client.execute_command
  
      self.nodes = {}
      self.edges = []
      self._labels = []  # List of node labels.
      self._properties = []  # List of properties.
      self._relationship_types = []  # List of relation types.
      self.version = 0
  
imports: import warnings
  from ..helpers import quote_string, random_string, stringify_param_value
  from .commands import AsyncGraphCommands, GraphCommands
  from .edge import Edge
  from .node import Node
  from .path import Path
label_desc: Use image node_id 1 to create a new Graph object from inherited base classes: GraphCommands with example: obj = Graph(client, name)