Let $G=\left( V,E,w \right)$ is an undirected graph with $E\subseteq \mathcal{P}_{2}\left( V \right)$ where $V$ is the set of vertices, ${{\mathcal{P}}_{2}}\left( V \right)=\left\{ \alpha \subseteq V:1\le \left| \alpha \right|\le 2 \right\}$, and $w:V\to \mathbb{R}_{0}^{+}$ is a weight function with $\mathbb{R}_{0}^{+}=\left\{ r\in \mathbb{R}:r\ge 0 \right\}$. Let us define a function $W:E\to {{\mathbb{R}}_{\ge 0}}$ as follows: $$W(e)=|w(v')-w(v'')|$$
if $\left\{ {v}',{v}'' \right\} \in E$. Consider a cylce in the graph $G$ denoted by $C=\left\{ {{e}_{1}},{{e}_{2}},...,{{e}_{n}} \right\}$ and suppose that there is a $\sigma :C\to \left\{ -1,1 \right\}$ function for any $C$ such that $$\sum\limits_{i=1}^{n}{\sigma \left( {{e}_{i}} \right)W\left( {{e}_{i}} \right)}=0.$$ My question is whether all the functions $\sigma :C\to \left\{ -1,1 \right\}$ can be substituted by a „global” function $\varsigma :E\to \left\{ -1,1 \right\}$ such that for any cycle $C=\left\{ {{e}_{1}},{{e}_{2}},...,{{e}_{n}} \right\}$ the following equation holds $$\sum\limits_{i=1}^{n}{\varsigma \left( {{e}_{i}} \right)W\left( {{e}_{i}} \right)}=0.$$ Furthermore, if there is such a function, I would like to know how to construct it.
