I am drawing AVL trees using tikz. I have this code:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{center}
\begin{tikzpicture}
\node[circle,draw](z){19}
child{node[circle,draw]{16}
child{node[circle,draw]{11}}
child{node[circle,draw]{17}}}
child{node[circle,draw]{21}
child{node[circle,draw]{20}}
child{node[circle,draw]{26}}};
\end{tikzpicture}
\end{center}
\end{document}
It should be a balanced AVL tree. The right child of the 16 should be 17 and the left child of the 21 should be 20. With the code I get this
As you can see the 17 and the 20 are fused as one node. How can I solve this problem without modifying all other trees that I have drawn already?
Thanks for your answers!