MathLabs

Problem 3

A social network has 20192019 users, some pairs of whom are friends (friendship is a symmetric relation). Events of the following kind may happen repeatedly, one at a time: three users AA, BB, and CC such that AA is friends with both BB and CC, but BB and CC are not friends, change their friendship statuses such that BB and CC are now friends, but AA is no longer friends with BB, and no longer friends with CC. All other friendship statuses remain unchanged. Initially, 10101010 users have 10091009 friends each, and 10091009 users have 10101010 friends each. Prove that there exists a sequence of such events after which each user is friends with at most one other user.
Step 1 of 6: Model friendships as a graph
G=(V,E),∣V∣=2019,toggle(A,B,C): AB,AC∈E, BC∉E ⟼ E′=(E∖{AB,AC})∪{BC}G=(V,E),\quad |V|=2019,\qquad \text{toggle}(A,B,C):\ AB,AC\in E,\ BC\notin E\ \longmapsto\ E'=(E\setminus\{AB,AC\})\cup\{BC\}
Detailed analysis

Let G=(V,E)G=(V,E) be the graph with VV the 20192019 users and EE the friendship pairs. Call the described change a toggle at A,B,CA,B,C: it needs edges ABAB and ACAC present but BCBC absent, and it replaces EE by E′=(E∖{AB,AC})∪{BC}E'=(E\setminus\{AB,AC\})\cup\{BC\}. The goal becomes reaching a graph in which every vertex has degree at most 11.