2008-06-17 07:18:53 PDT
Hi,
Fooling around with coodinates is the hard way, but you could say
\newdimen\myx
\pgfextractx\myx{\pgfpointanchor{node name}{center}}
and similarly for y. However *much* easier (assuming I understand what you want) is to cheat and use the fit library to create a node around the required nodes and then reference that node for the label:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit,positioning}
\begin{document}
\begin{tikzpicture}
\foreach \x in {a,b,c,d,e,f,g,h}
\node [circle, draw] (\x) at (rand*3cm,rand*3cm) {\x};
\node[draw,inner sep=0pt, help lines,dotted, rectangle, fit=(a) (b) (c) (d) (e) (f) (g) (h)] (box) {};
\node[above=1cm of box.north]{label};
\end{tikzpicture}
\end{document}
-Mark