TikZ provides syntax similar to DOT which you can use to tighten up your graph drawing code considerably.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs,quotes,arrows.meta}
\begin{document}
\begin{tikzpicture}
\graph[nodes={draw,circle},edges={-{Stealth[]}}] {
...