code: def run(self):
      graph = _build(
          self.repo,
          target=self.args.target,
          full=self.args.full,
          outs=self.args.outs,
      )
  
      if self.args.dot:
          ui.write(_show_dot(graph))
      elif self.args.mermaid or self.args.markdown:
          ui.write(_show_mermaid(graph, self.args.markdown))
      else:
          with ui.pager():
              ui.write(_show_ascii(graph))
  
      return 0
  
file_path: dvc/dvc/commands/dag.py
imports: from typing import TYPE_CHECKING
  from dvc.cli import formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.ui import ui
label_desc: Use image node_id 1 for calling the CmdDAG obj's underlying member method code with example usage: obj.run() and returns: int