[backcolor=rgba(255, 255, 255, 0.529412)]I'm trying to create a simple flowchart. The final step would be to connect the first and last nodes with an arrow and write some text on the arrow.
[backcolor=rgba(255, 255, 255, 0.529412)]I'm struggling with getting the text on the arrow.
[backcolor=rgba(255, 255, 255, 0.529412)]Here's what I have done:
- \begin{tikzpicture}[node distance = 2cm, auto]
- \node [block] (init) {A};
- \node [block] (init2) {A};
- \node [block, below of=init] (init3) {B};
- \node [block, below of=init3] (init4) {C};
- \path [line] (init) -- (init2);
- \path [line] (init2) -- (init3);
- \path [line] (init3) -- (init4);
- \draw [->] (init4.west) -| ++(-1,0) |- (init.west);
- \end{tikzpicture}
[backcolor=rgba(255, 255, 255, 0.529412)]The last line: \draw [->] (init4.west) -| ++(-1,0) |- (init.west); connects the two nodes. However, I am unable to add text on this arrow.