There are $$b_n = \frac{(n-1)!}{2}$$ ways to form a cycle on $n$ labelled vertices, for $n\geq 3$. The exponential generating function for this sequence is $$ f(x) = \frac{1}{2}\sum_{n\geq 3} (n-1)! \frac{x^n}{n!} =\frac{1}{2}\sum_{n\geq 3} \frac{x^n}{n},$$ and if we want the number of graphs on $n$ vertices, the components of which are cycles, the EGF is $$ g(x) = \exp(f(x)) = \exp \left(\frac{1}{2}\sum_{n\geq 1} \frac{x^n}{n} - \frac{x}{2} - \frac{x^2}{4}\right)$$ $$ =\exp \left( - \frac{x}{2} - \frac{x^2}{4}\right) (1-x)^{-1/2}.$$ (This is example 5.2.8 in Stanley's Enumerative Combinatorics, Vol II)
I'd like to do a similar thing with the number of connected components in a graph.
Fix $n$ and $m$, and consider the graphs on $n$ labelled vertices, with $m$ edges. (We may assume $m\ll n$.) Suppose we know there are $C_{j,l}$ ways to get a connected graph on $j$ vertices and $l$ edges. So, in particular, $C_{j,l}=0$ in case $l<j-1$, or $l>\binom{j}{2}$.
Question: Is it feasible to get an EGF for the sequence $a_k$ of the number of graphs with $k$ connected components ?
Clarification: Let us use the term $(n,m)$-graph, for a graph with $n$ vertices and $m$ edges. We fix $n$ and $m$, and may assume that $m\ll n$. Now, there are $\binom{\binom{n}{2}}{m}$ such $(n,m)$-graphs. Let $a_k$ be the number of $(n,m)$-graphs with $k$ connected components. Clearly, $\sum_{k=1}^n a_k = \binom{\binom{n}{2}}{m}$. I'm interested in the EGF $$ \sum_{k=1}^n \frac{a_k}{k!} x^k.$$
It's feasible to reduce the problem to finding an exponential generating function for the number of connected graphs.
Let $C(j,l,k)$ be the number of graphs on $j$ labeled vertices and $l$ edges with $k$ components. Use the convention that an empty graph has zero components, so $C(0,0,0)=1$ and $C(0,l,k)=0$ for all other $l,k$.
Consider the component containing vertex $1$ in a graph of $n$ vertices, $m$ edges, and $k$ components. If that component has $j$ vertices and $l$ edges, there are $n-j$ vertices and $m-l$ edges left for the remaining $k-1$ components, so \begin{align*}C(n,m,k) &= \sum_{1\in S\subset [n]}\sum_l C(|S|,l,1)\cdot C(n-|S|,m-l,k-1)\\ &= \sum_j\sum_l\binom{n}{j}C(j,l,1)\cdot C(n-j,m-l,k-1)\end{align*} Our choice to put $1$ in the first component means $j\ge 1$ - but since $C(0,l,1)=0$, we can add $j=0$ back in and just sum over all $j$. Back to the issue at hand - yeah, that looks like an exponential-type convolution. Define $B(n,m,k)=\frac1{n!}C(n,m,k)$, and it becomes $$B(n,m,k)=\sum_j\sum_l B(j,l,1)\cdot B(n-j,m-l,k-1)$$ Now define $f_k(x,y)=\sum_n\sum_mB(n,m,k)x^ny^m$. Our relation for the $B$ becomes $$f_k(x,y)=f_1(x,y)\cdot f_{k-1}(x,y)$$ so $f_k(x,y)=\left(f_1(x,y)\right)^k$. Whatever the exponential generating function for connected graphs is, we raise it to the $k$th power to get the exponential generating function for $k$-component graphs.
OK, one more thing. Since every graph has some number of connected components, we can sum over $k$: $$\frac1{1-f(x,y)} = \sum_k f^k(x,y) = \sum_{m,n}\frac1{n!}\binom{\binom{n}{2}}{m}x^ny^m = \sum_n\frac{x^n}{n!}(1+y)^{n(n-1)/2}$$ where $f$ is the EGF for the number of connected graphs and the right hand side is the EGF for the number of total graphs. I doubt the latter has an elementary closed form, so that's as far as it goes. We could solve for $f$, writing the other side as a series of powers of that generating function (minus its constant term $1$), but that's messier without any clear benefit.