I created a Binary Tree. This is my code:
\begin{tikzpicture}[level/.style={sibling distance=80mm/#1}]
\node[circle,draw](z){$50$}
child {node [circle,draw] {$30$}
child {node [circle,draw] {$10$}
\cm
child {node [circle,draw] {$20$}}}
child {node [circle,draw] {$40$}}}
child {node [circle,draw] {$80$}
child {node [circle,draw] {$60$}
\cm
child{node [circle,draw] {$70$}}}
child {node [circle,draw] {$90$}
child{node [circle,draw] {$85$}}
child{node [circle,draw] {$95$}}}};
\end{tikzpicture}
How can I add small numbers next to the nodes, like here?
Thank you.
\cm
mean in your code? Please give complete minimum working example.