\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning, arrows.meta} \begin{document} \input{weighted_graph.tikz} \end{document}