|
| 1 | +\documentclass{standalone} |
| 2 | +\usepackage{preset} |
| 3 | +\begin{document} |
| 4 | +\begin{tikzpicture}[background rectangle/.style={fill=white},show background rectangle,x=10,y=10,every node/.style={circle,draw,minimum size=1},level 2/.style={sibling distance=20mm},level 3/.style={sibling distance=10mm}] |
| 5 | + \node at(0,0){4} |
| 6 | + child[sibling distance=45mm]{node{4} |
| 7 | + child{node{5} |
| 8 | + child{node{}node[draw=none,below]{5}} |
| 9 | + child{node{}node[draw=none,below]{3}}} |
| 10 | + child{node{4} |
| 11 | + child{node{}node[draw=none,below]{3}} |
| 12 | + child{node{}node[draw=none,below]{1}} |
| 13 | + child{node{}node[draw=none,below]{4}}} |
| 14 | + child{node{6} |
| 15 | + child{node{}node[draw=none,below]{6}} |
| 16 | + child{node{}node[draw=none,below]{2}}}} |
| 17 | + child{node{3} |
| 18 | + child{node{3} |
| 19 | + child{node{}node[draw=none,below]{1}} |
| 20 | + child{node{}node[draw=none,below]{3}}} |
| 21 | + child{node{} |
| 22 | + child{node{}node[draw=none,below]{4}} |
| 23 | + child{node{}node[draw=none,below]{0}}}} |
| 24 | + child[sibling distance=35mm]{node{2} |
| 25 | + child{node{2} |
| 26 | + child{node{}node[draw=none,below]{2}} |
| 27 | + child{node{}node[draw=none,below]{1}}} |
| 28 | + child{node{} |
| 29 | + child{node{}node[draw=none,below]{5}} |
| 30 | + child{node{}node[draw=none,below]{7}}}}; |
| 31 | + \tikzset{every path/.style={red}} |
| 32 | + \draw(-6.8,-11)--++(.8,.8); |
| 33 | + \draw(1,-7)--++(.8,.8); |
| 34 | + \draw(11,-7)--++(.8,.8); |
| 35 | +\end{tikzpicture} |
| 36 | +\end{document} |
0 commit comments