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","."]
docstr: Get graph files.
  
  Every dir(means `run` in vdl) has only one graph file(means `actual log file`).
  
  Returns:
      walks: A dict like {"exp1": "vdlgraph.1587375595.log",
                          "exp2": "vdlgraph.1587375685.log"}
docstr_tok: ["Get","graph","files",".","Every","dir","(","means","`","run","`","in","vdl",")","has","only","one","graph","file","(","means","`","actual","log","file","`",")",".","Returns",":","walks",":","A","dict","like","{","``","exp1","''",":","``","vdlgraph.1587375595.log","''",",","``","exp2","''",":","``","vdlgraph.1587375685.log","''","}"]
code: def graphs(self, update=False):
      """Get graph files.
  
      Every dir(means `run` in vdl) has only one graph file(means `actual log file`).
  
      Returns:
          walks: A dict like {"exp1": "vdlgraph.1587375595.log",
                              "exp2": "vdlgraph.1587375685.log"}
      """
      if not self.walks or update is True:
          flush_walks = self.get_all_walk()
  
          walks_temp = {}
          for run, filenames in flush_walks.items():
              tags_temp = [
                  filename
                  for filename in filenames
                  if is_VDLGraph_file(filename)
              ]
              tags_temp.sort(reverse=True)
              if len(tags_temp) > 0:
                  walks_temp.update({run: tags_temp[0]})
          self.walks = walks_temp
      return self.walks
  
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 5 for calling the GraphReader obj's underlying member method code with example usage: obj.graphs(update) and returns: self