class_docstr: A class for utility functions of graph operations.
class_docstr_tok: ["A","class","for","utility","functions","of","graph","operations","."]
docstr: Return non-word nodes (like constituency tag nodes) in a syntactic graph.
docstr_tok: ["Return","non-word","nodes","(","like","constituency","tag","nodes",")","in","a","syntactic","graph","."]
code: def get_non_seq_nodes(g):
      """Return non-word nodes (like constituency tag nodes) in a syntactic graph."""
      res = []
      node_arr = list(g.nodes())
      for n in node_arr:
          if n.type != 0:
              res.append(copy.deepcopy(n))
      return sorted(res, key=lambda x: x.id)
  
file_path: graph4nlp/graph4nlp/pytorch/modules/graph_construction/utility_functions.py
imports: import copy
label_desc: Use image node_id 7 for calling the UtilityFunctionsForGraph obj's underlying member method code with example usage: obj.get_non_seq_nodes(g) and returns: sorted