How do I draw just a tree with one child using tikzpicture?
As shown in the picture, I want to have a tree like (1).

But I have only been succesful in getting a picture like (2) and (3) using:
\begin{tikzpicture}
\node[circle,draw](z){$30$}
% comment the below for (3):
child{}
child{
node[circle,draw]{40}}
;
\end{tikzpicture}
So, is there a modifier that I don't know of? I've tried to find it in the manual of 7xx pages, but I failed on finding something useful.



\begin{tikzpicture}[tree layout]. It's a better solution than the one in the link above, as it does not require manual distance specifications. – Syzygy Apr 08 '21 at 16:16