Is there some good tool for drawing binary trees with labels that are rendered by latex? I would need to have the tree node placement done automatically for me, because there are too many labels to calculate their placing manually.
To be more specific. I can easily control the output format of my data. What I can't do is output into a format, where I have to calculate the coordinates for each node. I'd like to output the data into a format for a tool that can calculate the graph layout.
EDIT: I noticed that the solution below doesn't seem to accept math in the labels. For example the code below won't work, but if I drop the dollars around the label "x", then it will. This is a problem, because my labels are 2x2-matrices.
\documentclass[tikz,border=5]{standalone}
\usetikzlibrary{graphs,graphdrawing,arrows.meta}
\usegdlibrary{trees}
\begin{document}
\begin{tikzpicture}[>=Stealth]
\graph[binary tree layout]
{
root->{$x$->{}}
};
\end{tikzpicture}
\end{document}


tikzortikz-qtreescale to large trees? – Brent.Longborough Sep 27 '14 at 08:45"$x$". All of these and much more is given in the PGF manual. – percusse Sep 27 '14 at 13:49