class_docstr: A class for utility functions of graph operations.
class_docstr_tok: ["A","class","for","utility","functions","of","graph","operations","."]
docstr: Return a dict for mapping from nodes id to word text.
docstr_tok: ["Return","a","dict","for","mapping","from","nodes","id","to","word","text","."]
code: def get_id2word(g):
      """Return a dict for mapping from nodes id to word text."""
      res = {}
      seq_arr = UtilityFunctionsForGraph.get_seq_nodes(g)
      nonseq_arr = UtilityFunctionsForGraph.get_non_seq_nodes(g)
      for x in seq_arr:
          res[x.id] = x.word
      for x in nonseq_arr:
          res[x.id] = x.word
      return res
  
file_path: graph4nlp/graph4nlp/pytorch/modules/graph_construction/utility_functions.py
imports: import copy
label_desc: Use image node_id 10 for calling the UtilityFunctionsForGraph obj's underlying member method code with example usage: obj.get_id2word(g) and returns: res