Suppose \(y=\pi (x)\) whenever \(w_{xy}\neq 0\). Then
\(\sigma (f)(y)=f(x)\) on every such edge, so the two integrals
agree. Off the support both sides have coefficient zero.
Now suppose the only idempotents of \(k\) are \(0\) and \(1\), and
suppose a twist \(\sigma \) exists. The primitive idempotents of
\(A\) are the functions \(\delta _x\). Thus \(\sigma \) permutes them:
\(\sigma (\delta _x)=\delta _{\pi (x)}\) for a permutation \(\pi \) of
\(X\). The twist identity says
\(w_{xy}f(x)=w_{xy}(\sigma f)(y)\) for every \(f\). If
\(y\neq \pi (x)\), take \(f=\delta _x\). Then \((\sigma f)(y)=0\), so
the right side is zero and the left side is \(w_{xy}\). Hence
\(w_{xy}=0\). The support is contained in the graph of \(\pi \).
For the product ring, split a function into a pair
\((f_+,f_-)\) of integer-valued functions. Let \(\pi _+\) exchange
\(1\) and \(2\) and fix \(3\), and let \(\pi _-\) exchange \(1\) and
\(3\) and fix \(2\). The rule
\[(\sigma f)_+=f_+\circ \pi _+^{-1},\qquad
(\sigma f)_-=f_-\circ \pi _-^{-1}\]
is an algebra automorphism. On the edge \(1\to 2\) the weight
\((1,0)\) retains only the first component, and
\((\sigma f)_+(2)=f_+(1)\). On the edge \(1\to 3\) the weight
\((0,1)\) retains only the second component, and
\((\sigma f)_-(3)=f_-(1)\). Both edges satisfy the twist identity,
and no permutation of \(X\) contains both pairs.