This appears as a basic question but I guess its important for those beginning to learn forest using the working example in this question (which typically looks like the Figure 2 here). I would like the first arrows of the parent look as shown in Figure 1. I have been trying this for a while and haven't figured it out. I also think it would also be beneficial to others if I ask here. I have used the code in the link provided as a benchmark.
Edit: I edited the first MWE and modified the one in the linked question for clarity. The problem is that following the style in Figure 2, when the children "Straighten the Arrows" in this diagram increases to say ten columns. The arrow from the parent begins to cross some of them.
\documentclass{article}
\usepackage{forest}
\usetikzlibrary{shadows,arrows.meta}
\tikzset{parent/.style={align=center,text width=2cm,fill=green!20,rounded corners=2pt},
child/.style={align=center,text width=2.8cm,fill=green!50,rounded corners=6pt},
grandchild/.style={fill=pink!50,text width=2.3cm}
}
\begin{document}
\begin{forest}
for tree={%
thick,
drop shadow,
l sep=0.6cm,
s sep=0.8cm,
node options={draw,font=\sffamily},
edge={semithick,-Latex},
where level=0{parent}{},
where level=1{
minimum height=1cm,
child,
parent anchor=south west,
tier=p,
l sep=0.25cm,
for descendants={%
grandchild,
minimum height=0.6cm,
anchor=150,
edge path={
\noexpand\path[\forestoption{edge}]
(!to tier=p.parent anchor) |-(.child anchor)\forestoption{edge label};
},
}
}{},
}
[Forest
[Straighten
[
[
[ ]
]
]
]
[The
[
[
[
[ ]
]
]
]
]
[Arrows
[
[
[
[
[]
]
]
]
]
]
]
\end{forest}
\end{document}




edgeslibrary. – cfr Feb 14 '18 at 04:38\draw (a) -| (b);in the code you see. Edges are not added one-by-one that way at all. – cfr Feb 14 '18 at 04:51edgeslibrary does much of what you are doing by hand, but also does it better. (Usually better - occasionally worse, which is whyforked edgedoesn't do the trick here and we need to hard code the path for the first level edges , butfolderis still better than the earlier alternatives.) – cfr Feb 14 '18 at 19:20