class_docstr: Graph reader to read vdl graph files, support for frontend api in lib.py.
      
class_docstr_tok: ["Graph","reader","to","read","vdl","graph","files",",","support","for","frontend","api","in","lib.py","."]
code: def set_input_graph(self, content, file_type="pdmodel"):
      if isinstance(content, str):
          if not is_VDLGraph_file(content):
              return
          if "pdmodel" in content:
              file_type = "pdmodel"
          else:
              file_type = "vdlgraph"
          content = bfile.BFile(content, "rb").read()
  
      if file_type == "pdmodel":
          data = analyse_model(content)
          self.graph_buffer["manual_input_model"] = Model(data)
  
      elif file_type == "vdlgraph":
          self.graph_buffer["manual_input_model"] = Model(
              json.loads(content.decode())
          )
  
      else:
          return
  
imports: import json
  import os
  from visualdl.component.graph import analyse_model
  from visualdl.component.graph import Model
  from visualdl.io import bfile
label_desc: Use image node_id 13 for calling the GraphReader obj's underlying member method code with example usage: obj.set_input_graph(content, file_type) without return types