I'm new to tikz-qtree
, and I would like to reproduce this figure in LaTeX:
So far, I've managed to cobble this bit of code, but the results are a bit comical, as the empty nodes (those without text) appear smaller than the nodes with text. Secondly, I haven't quite managed to put text above a node or opposite a node/edge as shown in the figure.
How do I get the circles to be all of same radius irrespective of whether empty/filled?
\begin{tikzpicture}[every tree node/.style={draw,circle}]
\Tree[.{Root}
[.4 11 {} ]
[.5 6 {} ]
]
\end{tikzpicture}
I reckon to do that, I might need to specify a new node with a fixed radius using \newcommand
right? However, my attempts have been unsuccessful.