Substitute \(\nabla \wedge f\). The coefficient of \(f(z)\) in \(\int \nabla \wedge f\) is
the incoming sum at \(z\) minus the outgoing sum at \(z\). The
integral vanishes for every \(f\) exactly when each of those
coefficients is zero.
Left multiplication by \(f\) multiplies the coefficient on
\(x\to y\) by \(f(x)\), and right multiplication multiplies it by
\(f(y)\). Their integrals differ by the displayed sum. Take
\(\omega =e_{xy}\) and \(f=\delta _x\). The sum reduces to \(w_{xy}\).
Thus every coefficient vanishes. The constant weight on a directed
cycle has one incoming edge and one outgoing edge at each vertex,
so it is closed, and the same substitution gives the cycle formula.