I would like to have arrows with text (above or below the arrow) connecting the nodes in a forest-environment. Unfortunately, I do not know how to implement it in the code because each arrow should have another text.
I am really grateful for every kind of help. Please find below my code:
\pgfkeys{/forest,
my rounded corners/.append style={rounded corners=2pt},
}
\begin{forest}
for tree={
font=\sffamily,
line width=1pt,
draw=linecol,
drop shadow,
fit=rectangle,
edge={thick, color=linecol, >={Triangle[]}, ->},
where level=0{%
l sep+=5pt,
calign=child,
calign child=2,
inner color=ocre!70,
outer color=ocre!70,
align=center,
my rounded corners,
for descendants={%
calign=first,
},
}{%
where level=1{%
inner color=ocre!30,
outer color=ocre!30,
my rounded corners,
align=center,
parent anchor=south west,
tier=three ways,
for descendants={%
child anchor=west,
parent anchor=west,
align=left,
anchor=west,
inner color=ocre!10,
outer color=ocre!10,
edge path={
\noexpand\path[\forestoption{edge}]
(!to tier=three ways.parent anchor) |-
(.child anchor)\forestoption{edge label};
},
},
}{}%
},
}
[a
[b
[b1
[b2]
]
]
[c
[c1
[c2
[c3]
]
]
]
[d
[d1
[d2]
]
]
[e
[e1
[e2]
]
]
]
\end{forest}

|-and-|paths the positionmidwayorpos=.5refers to the bend, so if you want the label halfway down the vertical part you'll want to usepos=.25. – Emma Nov 11 '16 at 14:32folderstyle provided by theedgeslibrary if I'm right about the general idea of the code you're using. – cfr Nov 11 '16 at 18:00