I'm trying to recreate the following block diagram with Tikz.
I created the block diagram with the following code:
\tikzstyle{node}=[draw, fill=pink, minimum width=4.2cm]
\tikzstyle{init} = [pin edge={to-,thin,black}]
\tikzstyle{end} = [pin edge={-to,thin,black}]
\begin{figure}
\begin{tikzpicture}[node distance=0.35cm, auto,>=latex']
\node [node, align=center, pin={[init, align=center, pin distance=0.35cm]above:{\footnotesize data}}] (a) {\small a};
\node [node, align=center, below= of a] (b) {\small b};
\node [node, align=center, below= of b] (c) {\small c};
\node [node, align=center, below= of c] (d) {\small d};
\node [node, align=center, below= of d] (e) {\small e};
\node [node, align=center, below= of e] (f) {\small f};
\node [node, align=center, below= of f, pin={[end, align=center, pin distance=0.35cm]below:{\footnotesize data}}] (g) {g};
\path[->] (a) edge (b);
\path[->] (b) edge (c);
\path[->] (c) edge (d);
\path[->] (d) edge (e);
\path[->] (e) edge (f);
\path[->] (f) edge (g);
\end{tikzpicture}
\caption{Block diagram.}
\label{fig:diagram}
\end{figure}
Resulting in this:
However, I wanted to draw a few arrows with a description next to the nodes but have no idea how to accomplish this. The idea was to look something like this:
How can I do something like this? Thank you so much.






\documentclasscommand, include any necessary packages and be as small as possible to demonstrate your problem. At the moment we have to guess what packages etc you are using before we can compile your code. – Mar 05 '20 at 12:12