Graph Theory

Answer & solution
Official answer: D
A simple self-complementary graph has the same number m of edges as its complement, so 2m=C(n, 2), or m=n(n−1)/4. This must be an integer, forcing n congruent 0 or 1 modulo 4. Thus D. The statement is a necessary condition; it does not assert every graph of those orders is self-complementary.
If a graph has m edges, its complement has n(n−1)/2−m. An isomorphism between them requires equal edge counts, so m=n(n−1)/4 must be an integer. Among four consecutive residue possibilities, n(n−1) is divisible by 4 exactly when n≡0 or 1 modulo 4. This establishes the necessary arithmetic restriction; the standard existence theorem for self-complementary graphs establishes these classes are attainable, rather than claiming edge integrality alone constructs a graph.