Graph Theory

Answer & solution
Official answer: 5
1. Set up the reasoning. Isomorphic graphs have matching vertex degrees. Every vertex of a cycle has degree 2; in its complement it is adjacent to all vertices except itself and its two cycle neighbors.
2. Derive the result. Every cycle vertex has degree 2, whereas its complement has degree n−3. Isomorphism forces 2=n−3, hence n=5. The complement of C5 is indeed another five-cycle, realized by stepping two vertices at a time around the original cycle.
3. Check the interpretation. The equation 2=n-3 is necessary. Verify sufficiency at n=5: if the original cycle visits vertices 0,1,2,3,4, its complement cycle can visit 0,2,4,1,3,0. Degree counting alone would not prove existence without this check.