\documentclass{standalone}
\usepackage[pdf]{graphviz}
%%% Helper code for Overleaf's build system to
%%% automatically update output drawings when
%%% code in a \digraph{...} is modified
\usepackage{xpatch}
\makeatletter
\newcommand*{\addFileDependency}[1]{% argument=file name and extension
\typeout{(#1)}
\@addtofilelist{#1}
\IfFileExists{#1}{}{\typeout{No file #1.}}
}
\makeatother
\xpretocmd{\digraph}{\addFileDependency{#2.dot}}{}{}
\begin{document}
\digraph[scale=0.5]{abc}{rankdir=LR; a->b->c
a [label=<foo<SUP>bar</SUP>>];}
\end{document}