Got the following from a student. The last line is trying to access the nodes inside of nodes A and B, but it doesn't do so. Can this approach succeed?
\begin{tikzpicture}[remember picture,
inner/.style={circle,draw=black!50,fill=white!20,thick,inner sep=3pt},
outer/.style={draw=black,fill=black!20,thick,inner sep=10pt}
]
\node[outer,draw=black] (A) {
\begin{tikzpicture}
\node[inner, state] (a) {$a$};
\node[inner, state] (b) [below =of a] {$b$};
\node[inner, state] (c) [below =of b] {$c$};
\node[inner, state] (d) [below =of c] {$d$};
\node[inner, state] (e) [below =of d] {$e$};
\end{tikzpicture}
};
\node[outer,draw=black,right=of A] (B) {
\begin{tikzpicture}
\node[inner, state] (f) {$f$};
\node[inner, state] (g) [below =of f] {$g$};
\node[inner, state] (h) [below =of g] {$h$};
\node[inner, state] (i) [below =of h] {$i$};
\end{tikzpicture}
};
\draw[very thick,orange,-] (a) -- (i);
