I'm drawing a block diagram with tikz, in which I have a node containing sub-nodes by means of nested tikzpictures.
Here is a MWE:
\documentclass[]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\begin{document}
\tikzstyle{virtual}=[coordinate]
\tikzstyle{block}=[draw, inner sep=3pt]
\begin{tikzpicture}[node distance=20pt]
% nodes
\node[virtual] (in) at (0mm,0mm) {};
\node[block] (g) [right = of in] {G};
\node[draw, anchor = east, inner xsep = 0, inner ysep = 5pt] (group) at ([xshift=100pt, yshift=50pt]g.west) {
\begin{tikzpicture}
\node[virtual] (in) at (0,0) {};
\node[block] (a) [right = of in] {$A$};
\node[block] (b) [above = of a] {$B$};
\node[draw,
circle,
anchor = center,
inner sep = 1pt,
xshift = 20pt,
minimum size=3pt,
] (sum) at ($(a.east)!0.5!(b.east)$) {};
\draw [->] (in.east) -- (a.west);
\draw [->] (in.east|-b) -- (b.west);
\draw [->] (a.east) -| (sum.south);
\draw [->] (b.east) -| (sum.north);
\draw [-] (sum.east) -- ([shift={(10pt,0)}]sum.east);
\end{tikzpicture}
};
%edges
\draw[->] (g.east) -- ([shift={(100pt,0)}]g.east);
\draw[->] ([shift={(10pt,0)}]g.east) |- (group.west); % <- I would like to connect to the in of block A
\end{tikzpicture}
\end{document}
whose output is
As I sketched with a red arrow in the picture, I would like to connect the signal coming up from the output of the node g to the node group in the position corresponding to the children-node a.
Is it possible to achieve this without the need of hard coding an yshift?


tikzpictures. – Feb 05 '19 at 16:29