[Tex/LaTex] Draw an arrow between nodes in forest foresttikz-pgf I want to create an arrow between two nodes like the red one in below example. I've seen the following in documentation, but tbh I don't understand how to use it and I need to use it in more than one tree. Best Answer It works precisely as described in the documentation... \documentclass[tikz,border=3.14mm]{standalone} \usepackage[edges]{forest} \begin{document} \tikzset{state/.style={draw,circle}} \forestset{d/.style={dotted,edge=dotted}, r/.style={red,edge=red}} \begin{forest} for tree={state,edge={-},grow=south,l sep=6mm,s sep=10mm}, [22,d [13,d [30,red,edge=dotted [15,r] [85,r]{\draw[<->,red] () to[bend right=45] node[midway,above right,font=\small]{zam} (!u.east);} ] [71 [17] [20] ] ] [11,d [33,edge=dotted [32] ] [55,d] ] ] \end{forest} \end{document} Related SolutionsForest – How to Align Nodes Horizontally Set the text height and text depth explicitly such that all nodes have the same height and baseline no matter what the letter looks like. \documentclass[border=1mm]{standalone} \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, text height=1.4ex, text depth=0.2ex % <<<<<<<<<<<<< } [g [B [g [D [E[F]]] [D' [E' [F']]] ]]] \end{forest} \end{document} Related Question
Best Answer
It works precisely as described in the documentation...