![Usando tikzpicture en beamer para hacer un gráfico acrílico dirigido](https://rvso.com/image/286335/Usando%20tikzpicture%20en%20beamer%20para%20hacer%20un%20gr%C3%A1fico%20acr%C3%ADlico%20dirigido%20.png)
Estoy intentando agregar un gráfico acrílico dirigido a una presentación de proyector. Usandoeste codigo(reproducido a continuación) Creé una diapositiva, pero la imagen producida tiene cada nodo y flecha apilados aproximadamente uno encima del otro. Intenté jugar con las posiciones de los nodos, pero no importa qué posiciones ingrese, parecen apilarse uno encima del otro en la imagen. ¿Cómo consigo que se muestre correctamente (como la imagen a continuación del sitio) en el proyector?
\begin{frame}
\begin{tikzpicture}
% nodes %
\node[text centered] (z) {$Z$};
\node[right = 1.5 of z, text centered] (t) {$T$};
\node[right=1.5 of t, text centered] (y) {$Y$};
\node[draw, rectangle, dashed, above = 1 of t, text centered] (u) {$U$};
% edges %
\draw[->, line width= 1] (z) -- (t);
\draw [->, line width= 1] (t) -- (y);
\draw[->,red, line width= 1,dashed] (u) --node {X} (z);
\draw[->,line width= 1] (u) --(t);
\draw[->,line width= 1] (u) -- (y);
\draw[->, red, line width=1,dashed] (z) to [out=270,in=270, looseness=0.5] node{X} (y);
\end{tikzpicture}
\end{frame}