class_docstr:     Dependency-parsing-tree based graph construction class
  
  Parameters
  ----------
  vocab: VocabModel
      Vocabulary including all words appeared in graphs.
class_docstr_tok: ["Dependency-parsing-tree","based","graph","construction","class","Parameters","--","--","--","--","--","vocab",":","VocabModel","Vocabulary","including","all","words","appeared","in","graphs","."]
code: def __init__(
      self,
      vocab,
  ):
      super(DependencyBasedGraphConstruction, self).__init__()
      self.vocab = vocab
      self.verbose = 1
  
file_path: graph4nlp/graph4nlp/pytorch/modules/graph_construction/dependency_graph_construction.py
imports: import copy
  import json
  from ...data.data import GraphData
  from .base import StaticGraphConstructionBase
label_desc: Use image node_id 1 to create a new DependencyBasedGraphConstruction object from inherited base classes: StaticGraphConstructionBase with example: obj = DependencyBasedGraphConstruction(vocab)