I Let $G$ be the set of simple graphs on $n$ nodes. Given a $g \in G$, we denote the number of triangles in $g$ with $n(g)$. Given some positive real-valued parameter $w$, we define the the function $Z(w)$ as follows: $$Z(w)= \sum_{g}\exp(w\cdot n(g))$$
I think its an intractable problem to compute $Z(w)$, but I don't know about approximations. Is there a known FPRAS for computing $Z(w)$?