I'm trying to draw a tikzpicture in which the centre of a group of nodes is at a given position relative to the centre of another group of nodes.
I've tried to use fit, pic, and I've looked at other answers like this, this and this. So far I've been able to position a single node relative to the centre of a pic, but I haven't been able to draw a pic with its centre at a given position.
Here's a MWE. I'd like to have my picture such that the centre of nodes d,e,f is to the right of (and vertically aligned with) the centre of nodes a,b,c. Additionally, I'd also like to add one equation below each group such that both equations are also vertically aligned.
\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[every node/.style={draw,circle,inner sep=1pt,minimum size=15pt}]
%% First group of nodes
\node (a) {};
\node[below left=of a] (b) {};
\node[below right=of a] (c) {};
\path[-latex] (a) edge (b)
(a) edge (c);
%% Second group of nodes
\node at (3,0) (d) {};
\node[right=of d] (e) {};
\node[right=of e] (f) {};
\path[-latex] (d) edge (e)
(e) edge (f);
\end{tikzpicture}
\end{document}
One option I've thought of is to make separate tikzpictures for each group, then making a table in the main body of the document. However, this is suboptimal for a few reasons and does not generalise, so if possible I'd like to have a solution in a single tikzpicture.
Any thoughts? Thanks!



