TITLE: Number of acyclic digraphs on $[n]$ with $k$ edges and each indegree, outdegree $\leq 1$
QUESTION [9 upvotes]: How many (labelled) acyclic digraphs are there on the vertex set $[n]$ with exactly $k$ edges and each indegree, outdegree $\leq 1$?  The answer is $${n \choose k} {n-1 \choose k} k!.$$  Is there a bijective proof?  I imagine the ${ n \choose k}$ would represent choosing the set of vertices that have outdegree one, and the $k!$ could represent putting an ordering or cycle structure on these vertices, but I'm not sure what the other factor might represent.

REPLY [4 votes]: This problem may also be answered by using the bivariate (mixed) generating function
$$ G(z, u) = \sum_{n\ge 1} \sum_{k=0}^{n-1} q_{n,k} \; u^k \frac{z^n}{n!} $$
where $q_{n,k}$ is the count of the acyclic digraphs on $n$ nodes and with $k$ edges that we wish to find, and hence is given by $$ q_{n,k} = n! [u^k z^n] G(z, u).$$
As pointed out the graphs in question are essentially sets of ordered lists, so that their combinatorial class specification is
$$\def\textsc#1{\dosc#1\csod}
\def\dosc#1#2\csod{{\rm #1{\small #2}}}
\mathcal{G} = \textsc{SET}(\mathcal{L})$$
where $\mathcal{L}$ is the class of ordered lists. With $L(z, u)$ being the mixed generating function of ordered labelled lists this translates into
$$ G(z, u) = \exp L(z, u).$$
But $L(z, u)$ is easily obtainable in closed form, we have
$$ L(z, u) = \sum_{n\ge 1} n! u^{n-1} \frac{z^n}{n!} =
z \sum_{n\ge 1} (uz)^{n-1} = \frac{z}{1-uz}$$
and thus
$$ G(z, u) = \exp\left(\frac{z}{1-uz}\right).$$
To complete the calculation, we recall that
$$ [z^n] \frac{1}{(1-z)^s} = \binom{n+s-1}{s-1}$$
giving $$ n! [u^k z^n] G(z, u) =
n! [u^k z^n] \sum_{m\ge 0} \frac{1}{m!} \left(\frac{z}{1-uz}\right)^m =
n! [u^k] \sum_{m=0}^n \frac{1}{m!} [z^n]\left(\frac{z}{1-uz}\right)^m $$
which is
$$n! [u^k] \sum_{m=0}^n \frac{1}{m!} [z^{n-m}] \frac{1}{(1-uz)^m} =
n! [u^k] \sum_{m=0}^n \frac{1}{m!} u^{n-m} \binom{n-m+m-1}{m-1} \\=
n! [u^k] \sum_{m=0}^n \frac{1}{m!} u^{n-m} \binom{n-1}{m-1}.$$
Now switch variables in the sum to obtain
$$ n! [u^k] \sum_{m=0}^n \frac{1}{(n-m)!} u^m \binom{n-1}{n-m-1} =
n! [u^k] \sum_{m=0}^n \frac{1}{(n-m)!} u^m \binom{n-1}{m} =
n!\frac{1}{(n-k)!} \binom{n-1}{k} =
\binom{n}{k} \binom{n-1}{k} k!. $$
There is more on this beautiful method at this link at INRIA.