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 get_all_nodes(self, run):
      if run == "manual_input_model" and run in self.graph_buffer:
          graph_model = self.graph_buffer[run]
          return graph_model.get_all_leaf_nodes()
      if run in self.walks:
          if run in self.walks_buffer:
              if self.walks[run] == self.walks_buffer[run]:
                  graph_model = self.graph_buffer[run]
                  return graph_model.get_all_leaf_nodes()
  
          data = bfile.BFile(
              bfile.join(run, self.walks[run]), "rb"
          ).read()
          if "pdmodel" in self.walks[run]:
              graph_model = Model(analyse_model(data))
          else:
              graph_model = Model(json.loads(data.decode()))
          self.graph_buffer[run] = graph_model
          self.walks_buffer[run] = self.walks[run]
          return graph_model.get_all_leaf_nodes()
  
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 9 for calling the GraphReader obj's underlying member method code with example usage: obj.get_all_nodes(run) and returns: graph_model, graph_model, graph_model