class_docstr: A class for utility functions of graph operations.
class_docstr_tok: ["A","class","for","utility","functions","of","graph","operations","."]
docstr: Return the tail node in a syntactic graph, to be used when we need to connect multiple             graphs into one merged graph.
docstr_tok: ["Return","the","tail","node","in","a","syntactic","graph",",","to","be","used","when","we","need","to","connect","multiple","graphs","into","one","merged","graph","."]
code: def get_tail_node(g, sentence_id):
      """Return the tail node in a syntactic graph, to be used when we need to connect multiple\
               graphs into one merged graph."""
      for n in g.nodes():
          if (n.tail is True) and (n.sentence == sentence_id):
              return n
  
file_path: graph4nlp/graph4nlp/pytorch/modules/graph_construction/utility_functions.py
imports: import copy
label_desc: Use image node_id 2 for calling the UtilityFunctionsForGraph obj's underlying member method code with example usage: obj.get_tail_node(g, sentence_id) and returns: n