I am looking to make a tree where the angle of the edge to children is the same at every level. I am aware that this might cause nodes to overlap.
I want something that looks like this:
But unfortunately my tree looks like this:
My tree uses this LaTeX:
\tikzset{every tree node/.style={minimum width=2em,draw,circle},
blank/.style={draw=none},
edge from parent/.style=
{draw,edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}},
level distance=1cm
}
\begin{tikzpicture}
\Tree [ .1 [ .2 \edge[blank]; \node[blank]{}; [ .4 \edge[blank]; \node[blank]{}; [ .5 \edge[blank]; \node[blank]{}; [ .6 \edge[blank]; \node[blank]{}; 7 ] ] ] ] 3 ]
\end{tikzpicture}
Help is appreciated
level 1/.style={sibling distance=-1cm}
to the options in the\tikset
macro.tikz-qtree
package? I have the feeling that it is easier to achieve what you want using a normal Tikz tree or maybe using theforest
package. Your answer seems to support my feeling …