class_docstr: Graph, collection of nodes and edges.
class_docstr_tok: ["Graph",",","collection","of","nodes","and","edges","."]
docstr: Returns a relationship type by it's index
  
  Args:
  
  idx:
      The index of the relation
docstr_tok: ["Returns","a","relationship","type","by","it","'s","index","Args",":","idx",":","The","index","of","the","relation"]
code: def get_relation(self, idx):
      """
      Returns a relationship type by it's index
  
      Args:
  
      idx:
          The index of the relation
      """
      try:
          relationship_type = self._relationship_types[idx]
      except IndexError:
          # Refresh relationship types.
          self._refresh_relations()
          relationship_type = self._relationship_types[idx]
      return relationship_type
  
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 9 for calling the Graph obj's underlying member method code with example usage: obj.get_relation(idx) and returns: relationship_type