I am trying to build a horizontal tree using package forest, though I don't manage to get the nodes well aligned. Here is an example and MWE:
\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={
calign=center,
grow'=east, % tree direction
parent anchor=east, child anchor=west, % edge anchors
rounded corners, draw,
}
[A [B [C [D [E[F]]] [D' [E' [F']]] ]]]
\end{forest}
\begin{forest}
for tree={
calign=center,
grow'=east, % tree direction
parent anchor=east, child anchor=west, % edge anchors
rounded corners, draw,
}
[g [B [g [D [E[F]]] [D' [E' [F']]] ]]]
\end{forest}
\end{document}
What I would like to get is something like in the first tree, while as you can see from the second one, the text in the nodes influences their alignment.