Hello, I am not sure how to solve this problem on graphs from a previous contest. Any help is appreciated.
https://codeforces.net/predownloaded/49/4e/494ef6d6376342a0bdbd9e42cb0f57389fe21d3b.png /predownloaded/49/4e/494ef6d6376342a0bdbd9e42cb0f57389fe21d3b.png