Description
I want to connect two nodes with a directed edge (or path). The edge shall 1) bend AND have 2) a decoration - but only in the middle of the edge. A draft looks like this:Attempt 1
I achieved 1) and 2) separately. But I don't achieve 1) + 2) combined or with poor results.As far as I understand the path decoration is a global property and therefore applies to the complete path. As is written here tikz manual, chapter 11.2.3 and in several posts.
Attempt 2
I tried to make use of two dummy notes A and B and create a path between them with a zigzag line\documentclass[margin=10pt]{standalone}
\usepackage{tikz} %drawings
\usetikzlibrary{arrows,positioning, decorations.pathmorphing} %drawings positioning
\usepackage[siunitx]{circuitikz}
\begin{document}
\begin{tikzpicture}
\draw [help lines] (0,0) grid (15,10);
% CONTENT NODES
\node[align=center] (agent) at (2,5){Agent :: Mental Models};
\node[align=center] (action) at (7, 5){Actions/\\ Communications};
% DUMMY NODES
\node(A) at (4.5, 3){};
\node(B) at (5.5, 3){};
% ZIGZAG LINE BETWEEN DUMMY NODES
\path [decoration={zigzag, post length=0.1cm, pre length=0.1cm, amplitude=5}]
(A) edge[decorate] node[below] {takes} (B);
% CONNECT DUMMY NODES TO CONTENT NODES WITH ADJUSTED MARGIN
\path[shorten >=-.3cm]
(action) edge[bend left] (B);
\path[shorten <=-0.3cm]
(A) edge[->, bend left] (agent);
\end{tikzpicture}
\end{document}
But the problem is that there is no closed path. The result is ugly. Refer to the disconnection of the zigzag segment
Attempt 3
I tried to make use of the package\usepackage[siunitx]{circuitikz}
to draw a complete path. This works perfectly for straight paths. But I couldn't use it for a bend path