binary-tree.tex 362 B

1234567891011121314151617
  1. \tikzstyle{vertex}=[draw,fill=black!15,circle,minimum size=20pt,inner sep=0pt]
  2. \begin{tikzpicture}[very thick,level/.style={sibling distance=60mm/#1}]
  3. \node [vertex] (r){$a$}
  4. child {
  5. node [vertex] (a) {$b$}
  6. child {
  7. node [vertex] {$c$}
  8. }
  9. child {
  10. node [vertex] {$d$}
  11. }
  12. }
  13. child {
  14. node [vertex] {$e$}
  15. };
  16. \end{tikzpicture}