Let $K_n$ be the complete graph on $n$ vertices, where $n$ is even and greater than 2. Let $G$ be a spanning subgraph of $K_n$, and let $G'$ be its complement in $K_n$. The edges of $G$ and $G'$ can be thought of as two color classes in an edge 2-coloring of $K_n$.
We are looking for the simplest proof of the following (the book proof if you will):
Fact The parity of the number of paths of length 2 in $G$ and in $G'$ is the same.
Here, we are (somewhat unconventially) identifying every path $abc$ of length 2 with its "mirror version" $cba$.
We are also looking for the following
Problem Provide a procedure (maybe to generate all the paths with exactly one edge in $G$ and one edge in $G'$), so that it is evident that the number of paths with exactly one edge in $G$ and exactly one in $G'$ is even. It might be that the procedure just pairs up paths uniquely.
This is a good question here, as the gist of it is to obtain mathematical information via the procedure as in so many parity arguments. The computational aspect in itself is not so important, other than that it give the parity of the number of paths easily.
I think the conventional definition of path means that $v_1v_2v_3$ and $v_3v_2v_1$ are counted as two paths. In that case the result would be obvious so I shall suppose they are counted as the same path.
Proof of the Fact
Let the edges of $K_n$ be coloured either red or yellow and consider any red edge , $e$.
Let $e$ be connected on one side to $a$ red edges and therefore $n-2-a$ yellow edges. Let it be connected on the other side to $b$ red edges and therefore $n-2-b$ yellow edges. Changing the colour of $e$ to yellow reduces the number of red paths of length 2 by $a+b$ and increases the number of yellow paths by $2n-4-a-b$. We note that these numbers have the same parity.
The procedure can be repeated until there are no red edges. In that case the number of yellow paths of length 2 is $\frac{n(n-1)(n-2)}{2}$. This number is even (in fact divisible by 4) and so the parity of the number of paths of length 2 in $G$ and in $G'$ was the same throughout.
The procedure for the problem
We apply the same procedure as above. The change of colour reduces the number of paths with exactly one edge in $G$ and exactly one in $G'$ by $2n-4-2a-2b$, an even number. Continuing the procedure leads to the situation where there are no such paths and so the number was originally even.