答案1
为原帖者指明正确方向
\RequirePackage[dvipsnames]{xcolor}
\documentclass[tikz]{standalone}
\usetikzlibrary{automata,positioning,fit,backgrounds}
\tikzset{
back/.style={circle,
inner sep=0.2cm,
rounded corners=3mm},
}
\begin{document}
\begin{tikzpicture}[
circ/.style={shape=circle, minimum size=1cm, draw, fill=white, outer sep=+0pt},
back/.style={circle, inner sep=0.2cm, rounded corners=3mm}
]
\draw
node[circ] (A1) at (0,0) {A1}
node[circ] (A2) at (2,2) {A2}
node[circ] (A3) at (3,4) {A3}
node[circ] (A4) at (2,5) {A4};
\begin{pgfonlayer}{background}
\node [back, fill=black!10,
fit=(A1) (A2),
label={[xshift=-2mm]above left:{\tiny black circle}}] {};
\node [back, fill=red!10,
fit=(A2) (A3) (A4),
label={[xshift=-2mm]above right:{\tiny red circle}}] {};
\end{pgfonlayer}
\end{tikzpicture}
\end{document}