class_docstr: Read a knowledge graph to memory
class_docstr_tok: ["Read","a","knowledge","graph","to","memory"]
docstr: Given a relation name, get the name of inverse relation.
docstr_tok: ["Given","a","relation","name",",","get","the","name","of","inverse","relation","."]
code: def get_inverse_relation_from_name(self, rname):
      """Given a relation name, get the name of inverse relation."""
      if rname.startswith(self.inverse_relation_prefix):
          inv_rname = rname.strip(self.inverse_relation_prefix)
      else:
          inv_rname = self.inverse_relation_prefix + rname
      return inv_rname
  
file_path: neural-structured-learning/research/a2n/graph.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from collections import defaultdict
  import csv
  from absl import logging
  import numpy
label_desc: Use image node_id 2 for calling the Graph obj's underlying member method code with example usage: obj.get_inverse_relation_from_name(rname) and returns: inv_rname