Let $G=(V,E)$ be a finite graph and let $f$ be any positive function defined on the vertices. Put weights on the vertices $v_{i}$, way $w_{i}$ so that $\sum_{i=1}^{n}w_{i}\leq 1$. Assume that every independent set of vertices, say $I$, satisfies $\sum_{v_i\in I}w_{i}\leq 1/2$. I would like to maximize over all choices of the weights the following expression (the average of f):$\\$ $$\sum_{i=1}^{n}f(v_i)w_{i}.\\$$
Question: is it true, that at least one global maximum is achieved by either i) putting weights $1/2$ on a pair of two neighboring vertices or ii) putting a weight $1/2$ on one vertex and $0$ on all of the others?
Remark: the second situation can arise, for example, in the case $G$ is the empty graph and the value of $f$ at one vertex is strictly larger than on the other vertices.