Fact-checked by Grok 2 weeks ago

Self-complementary graph

A self-complementary graph is a simple undirected graph that is isomorphic to its complement, meaning there exists a between the vertices that maps edges to non-edges and vice versa. Such graphs necessarily have an n (number of vertices) satisfying n ≡ 0 or 1 (mod 4), with exactly n(n-1)/4 edges, ensuring the edge count matches that of the complement. The concept of self-complementary graphs was introduced independently by Horst Sachs in 1962 and Gerhard Ringel in 1963, with early enumerative work by Ronald Read shortly thereafter. These graphs possess notable structural properties, including , a of 2 or 3, and the presence of Hamiltonian paths; for n > 5, they contain cycles of every length from 3 to n-2. Their degree sequences are symmetric around (n-1)/2, reflecting the inherent symmetry with their complements. Prominent examples include the P4 on 4 vertices and the C5 on 5 vertices, both of which are self-complementary. More advanced constructions, such as Paley graphs of prime order p ≡ 1 (mod 4), yield self-complementary graphs that are also strongly . The of self-complementary graphs on n vertices forms the sequence 1, 0, 0, 1, 2, 0, 0, 10, 36, ... (OEIS A000171), with exact counts known up to relatively large n through computational catalogs. Self-complementary graphs are significant in due to their connections to isomorphism testing—recognizing them is polynomially equivalent to the —and applications in reconstructing graphs from edge sets or studying symmetric structures like antimorphisms. Ongoing research explores generalizations, such as almost self-complementary graphs and multipartite variants, highlighting their role in and .

Fundamentals

Definition

A self-complementary graph is defined in the context of undirected simple graphs without loops or multiple edges. The complement \overline{G} of a graph G with vertex set V(G) is the graph on the same vertex set where two distinct vertices are adjacent in \overline{G} if and only if they are not adjacent in G. This complement consists of all possible edges absent from G, forming the complete graph K_n minus the edges of G, where n = |V(G)|. A G on n vertices is self-complementary if it is isomorphic to its complement \overline{[G](/page/G)}. here means there exists a \phi: V(G) \to V(\overline{G}) such that for any distinct vertices u, v \in V(G), the pair uv is an edge in G \phi(u)\phi(v) is an edge in \overline{G}. This , often termed an antimorphism, preserves the adjacency structure while mapping edges in G to non-edges in \overline{G} and vice versa. Since G and \overline{G} are isomorphic, they must have the same number of edges, implying that |E(G)| = |\overline{G}|. The total possible edges on n vertices is \binom{n}{2} = n(n-1)/2, so each has exactly half, or |E(G)| = n(n-1)/4. For this to be an , n(n-1) must be divisible by 4.

History

The study of self-complementary s originated in the early with foundational contributions from H. Sachs, who introduced the concept in the context of antimorphisms and symmetries in his 1962 paper. Sachs developed methods using antimorphisms, proving that every antimorphism corresponds to one in some or almost self-complementary , and demonstrated the existence of circulant self-complementary graphs for orders n whose prime divisors are congruent to 1 4. Independently, G. Ringel explored similar ideas in 1963, focusing on structural and self-complementary structures, including and techniques via antimorphisms that paralleled Sachs' discoveries. That same year, R. C. Read advanced the field through work on , providing formulas for the number of self-complementary graphs and digraphs on even and orders, and proposed methods based on antimorphisms while reviewing prior results. In the 1970s, research shifted toward structural theorems and Hamiltonicity, with R. A. Gibbs investigating eigenvalues of self-complementary graphs and charting key developments in the area. S. B. made significant strides on Hamiltonicity, establishing in 1977 that self-complementary graphs on more than 5 vertices contain circuits of lengths 3 through n-2, and providing characterizations of non- self-complementary graphs; his 1979 paper offered a comprehensive solution to the problem for these graphs, showing that non-Hamiltonian examples are highly constrained except for specific cases on orders $4k. C. R. J. contributed to path properties, proving in 1974 that every finite self-complementary graph contains a (or arc), and in 1975 exploring arcs in infinite self-complementary graphs. These works built a robust framework for understanding and cycle structures. In 1973, also studied the number of triangles in self-complementary graphs. The 1980s saw further exploration of paths and related properties, with extending analyses of paths and P. Camion addressing traceable aspects in self-complementary graphs around 1975, influencing later path-focused studies. Contributions from J. Akiyama and F. Harary on , as well as C. Y. Chao and E. G. Whitehead on chromatic numbers, highlighted structural intricacies. By the , A. R. Farrugia's master's and accompanying survey synthesized the field, compiling over 200 papers on topics from and to enumerations, serving as a key reference that underscored the maturity of the area. Subsequent developments evolved self-complementary graphs into broader generalizations, such as almost self-complementary graphs, which are isomorphic to graphs differing by a single edge from their complement, extending classical constructions and properties. Applications emerged in , where self-complementary structures inform circular codes and error-correcting mechanisms, as explored in analyses of code graphs and their path properties. In the 2020s, ongoing research has included new constructions of regular and quasi-regular self-complementary graphs, enumerations of self-complementary circulant graphs on prime-power orders, and studies of flip graphs on self-complementary ideals in chain product posets.

Properties

Basic Properties

A self-complementary graph on n vertices exists only if n \equiv 0 or $1 \pmod{4}. This condition arises because the total number of possible edges in the complete graph K_n is \frac{n(n-1)}{2}, and for the graph to be isomorphic to its complement, it must contain exactly half of these edges, so \frac{n(n-1)}{4} must be an integer. Consequently, every self-complementary graph has precisely \frac{n(n-1)}{4} edges. The degree sequence of such a graph is symmetric around \frac{n-1}{2}, meaning that if d_i is the degree of a vertex, then there is a corresponding vertex of degree n-1-d_i. When n = 4k+1 for some integer k \geq 0, the graph is regular of degree \frac{n-1}{2} = 2k. All self-complementary graphs on n > 1 vertices are connected. Additionally, the of every self-complementary graph on n > 1 vertices is 2, reflecting the balanced structure imposed by to the complement.

Advanced Properties

Self-complementary graphs exhibit several advanced structural that arise from their to their complements. For graphs of order n > 1, the is either 2 or 3, ensuring that any two vertices are connected by a short , with the complement preserving this bounded distance. Every self-complementary graph contains a , a result established by analyzing the degree sequences and applying closure conditions from variants. Many such graphs are also , meaning they possess a Hamiltonian cycle; however, the non-Hamiltonian ones are characterized as "highly constricted," where the graph and its complement both have vertices of degree at most 1 or specific structural bottlenecks, except for a particular exceptional graph on $4k vertices. Regarding cycle structures, every self-complementary graph of order n > 5 contains cycles of every length \ell where $3 \leq \ell \leq n-2, reflecting the balanced edge distribution between the graph and its complement. Furthermore, those that are are pancyclic, admitting cycles of all lengths from 3 to n. An antimorphism, defined as an \phi: [G](/page/G) \to \overline{[G](/page/G)}, viewed as a of the vertices, decomposes into disjoint cycles whose lengths are multiples of 4, except possibly for a single fixed point when n \equiv 1 \pmod{4}; this cycle structure enforces the self-complementarity. The \mathrm{Aut}(G) of a self-complementary graph G is isomorphic to \mathrm{Aut}(\overline{G}) due to the between G and \overline{G}, but the precise relationship involves an extension by a complementing , and no complete characterization of such groups exists beyond specific constructions.

Examples

Small Examples

The trivial self-complementary graph is the K_1 on a single , which has no edges and is isomorphic to its empty complement. On four vertices, there is a unique self-complementary graph up to isomorphism: the path graph P_4. This graph has vertices labeled 1 through 4 and edges connecting 1-2, 2-3, and 3-4; its complement consists of edges 1-3, 1-4, and 2-4, which is isomorphic to P_4 under the vertex permutation that reverses the order of the vertices. On five vertices, there are two non-isomorphic self-complementary graphs. One is the cycle graph C_5, with vertices 1 through 5 and edges 1-2, 2-3, 3-4, 4-5, and 5-1; an isomorphism to its complement can be achieved by mapping each vertex i to i+2 \pmod{5}. The other is the bull graph, formed by a triangle on vertices a, b, c (edges a-b, b-c, c-a) with two pendant vertices d adjacent only to b and e adjacent only to c. On eight vertices, there are ten non-isomorphic self-complementary graphs, as enumerated through exhaustive generation and isomorphism checking. On nine vertices, there are 36 non-isomorphic self-complementary graphs, including four that are regular of degree 4.

Infinite Families

One prominent infinite family of self-complementary graphs consists of the Paley graphs. For a prime power q \equiv 1 \pmod{4}, the Paley graph of order q has vertex set the elements of the finite field \mathbb{F}_q, with an edge between distinct vertices x and y if and only if x - y is a nonzero quadratic residue in \mathbb{F}_q. These graphs are self-complementary, as the complement corresponds to connecting vertices whose differences are quadratic nonresidues, and multiplication by a fixed quadratic nonresidue induces an isomorphism between the graph and its complement. The , also known as the infinite , provides an example in the infinite setting. It is the unique (up to ) countable graph satisfying the extension property: for any finite disjoint sets U and V of , there exists a vertex adjacent to all vertices in U and none in V. This graph is self-complementary, since the extension property is preserved under complementation, implying an isomorphism between the graph and its complement. Recursive constructions generate further infinite families of finite self-complementary graphs. Starting from a self-complementary graph on n vertices where n \equiv 0 or $1 \pmod{4}, one can form a larger self-complementary graph on n+4 vertices by taking the with a on four vertices P_4 (which is self-complementary) and adding specific edges between the components to preserve the property; alternatively, G-joins of two self-complementary graphs on equal orders can yield another self-complementary graph when the join parameters are chosen appropriately. These methods produce arbitrarily large self-complementary graphs, establishing infinite sequences. Self-complementary graphs that are also strongly regular form another notable family, often arising from combinatorial designs. The Paley graphs themselves are strongly regular with parameters (q, (q-1)/2, (q-5)/4, (q-1)/4), and beyond these, an additional infinite family of self-complementary symmetric (hence vertex-transitive and strongly regular) graphs exists, constructed via certain Paley-type tournaments over finite fields of characteristic not 2. Examples include graphs of orders 5, 9, 13, 17, and 25, which can be realized as graphs or graphs on appropriate orders. For orders n \equiv 2 or $3 \pmod{4}, where self-complementary graphs do not exist, almost self-complementary graphs provide analogous infinite families. A graph on n vertices is almost self-complementary if it is isomorphic to the complement minus a (when n is even) or a near-perfect matching (when n is odd). Constructions include extensions of smaller almost self-complementary graphs by adding structures like modified paths or using symmetric designs, yielding sequences for all such n; for instance, starting from the almost self-complementary graph on 2 vertices and recursively adjoining components preserves the property.

Enumeration

Counts for Small Orders

Self-complementary graphs exist only for vertex orders n \equiv 0 or $1 \pmod{4}. The enumeration of unlabeled self-complementary graphs (up to ) for small such n has been a focus of early work in graph enumeration, providing exact counts that illustrate the growth in complexity as n increases. The following table lists these counts up to n=21:
nNumber of unlabeled self-complementary graphs
11
41
52
810
936
12720
135600
16703760
1711220000
209168331776
21293293716992
These values are computed using cycle index methods and computational enumeration, with initial results for n \leq 9 from analytical formulas and higher values from systematic generation. For n=8, the 10 graphs represent all isomorphism classes, none of which are . For n=9, the 36 graphs include exactly two self-complementary graphs of degree 4, one of which is the of order 9.

General Formulas

The Parthasarathy-Sridharan provides a method for counting the number of self-complementary graphs on n vertices with a prescribed sequence, where the degree sequence must be graphical and symmetric about (n-1)/2, meaning if d_i is a , then n-1-d_i appears with the same multiplicity. This , derived using extensions of the Havel-Hakimi algorithm adapted for self-complementarity, allows enumeration by generating realizations that are invariant under complementation. Enumeration of unlabeled self-complementary graphs often employs applied to the action of the hyperoctahedral group or S_2 \wr S_n, accounting for the induced by complementation. Asymptotic estimates reveal the of self-complementary graphs. For large n = 4k, g_{4k} \sim 2^{2k^2 - 2k} / k! \left(1 + k(k-1) 2^{5-4k}\right). For regular self-complementary graphs, which must have n = 4k+1 vertices and degree $2k, existence requires n to be expressible as a sum of two squares, as established by characterizations of their strongly regular parameters (n, 2k, k-1, k). This condition ensures the integrality of eigenvalues and supports constructions like Paley graphs when n is a congruent to 1 4.

Algorithms and Complexity

Construction Methods

One fundamental approach to constructing self-complementary graphs relies on the concept of an antimorphism, which is a \sigma of the set that serves as an from the graph G to its complement \overline{G}. To ensure such a \sigma exists, its decomposition must consist of cycles of lengths that are multiples of 4, or for graphs of order n = 4k + 1, all but one must be of length multiple of 4 with the remaining being a fixed point. This structure allows the edges of the K_n to be partitioned into orbits under the action of \sigma, from which a self-complementary graph can be formed by selecting half of the edges in each orbit appropriately. The foundational results on these cycle conditions were established independently by Sachs and Ringel. The Sachs-Ringel construction builds directly on this antimorphism framework, particularly for cyclic antimorphisms on n = 4k vertices. It involves specifying a \sigma with the required cycle structure and then assigning degrees that alternate between r and $4k - 1 - r across the vertices to maintain self-complementarity. This method guarantees the existence of circulant self-complementary graphs n \equiv 0 or $1 \pmod{4} and every prime of n is congruent to $1 \pmod{4}. Sachs and Ringel provided the initial algorithms for realizing these regular and quasi-regular cases. Recursive constructions enable the systematic expansion of smaller self-complementary graphs to larger ones. One common technique is to take two self-complementary graphs H and K and form their or G-join, where vertices of H are replaced by copies of K and edges are added based on the structure of H, preserving self-complementarity if both inputs are self-complementary. Another approach adds a P_4 to an existing self-complementary graph, increasing the by 4 while maintaining the , as formalized in theorems on incremental vertex addition connected to cycle parities. These methods, explored by Gangopadhyay and Rao Hebbare, also yield infinite families through repeated application. The Paley construction produces self-complementary graphs of order q \equiv 1 \pmod{4}, where the vertices are elements of the \mathbb{F}_q. Two vertices a and b are adjacent if b - a is a nonzero in \mathbb{F}_q. This yields a vertex-transitive self-complementary graph, with the self-complementarity arising from the multiplicative structure of the field, where non-residues correspond to the complement edges. The construction was highlighted in the context of strongly regular self-complementary graphs by and others. Factorization methods, particularly those developed by Schwenk, address constructions for multipartite self-complementary graphs through edge decompositions into symmetric factors. These involve partitioning the edges of K_n into cyclic factors where the acts to ensure to the complement, with sequences required to be symmetric around n/2. Schwenk's work on such factorizations provides a framework for enumerating and building multipartite instances, linking to 2-factor decompositions where the complement's graphic sequence aligns.

Recognition Problem

The recognition problem for self-complementary graphs asks whether a given undirected simple graph G on n vertices is isomorphic to its complement \overline{G}, where \overline{G} has the same vertex set as G but edges between vertices that are non-adjacent in G. This decision problem is polynomial-time equivalent to the graph isomorphism problem, as solving it reduces to testing the existence of an isomorphism between G and \overline{G}, and the reduction can be performed in polynomial time by constructing the complement explicitly. The of this recognition problem matches that of , which is classified as GI-complete—meaning it is polynomial-time interreducible with and serves as a complete problem under polynomial-time reductions for the class GI. As a result, self-complementary graph recognition inherits the quasi-polynomial time solvability established for in 2015, with a of \exp\left((\log n)^{O(1)}\right), though it remains unknown whether the problem lies in deterministic polynomial time (P) or is . Practical algorithms for recognizing self-complementary graphs adapt standard techniques to compare G and \overline{G}. One common approach computes a labeling—a unique, isomorphism-invariant representation—for both graphs and checks if the labelings match; this can be done using tools like the nauty software package, which employs with invariants. Alternatively, the , a color-refinement method that iteratively partitions vertices based on neighborhood structures, can test for isomorphism by applying it to the pair (G, \overline{G}) and verifying if the final color partitions are compatible under a . Despite these advances, developing a deterministic polynomial-time for self-complementary graphs remains an , equivalent to resolving the polynomial-time status of . Since the problem is GI-complete, a polynomial-time solution would place in , potentially impacting broader questions in , such as the relationship between and , by providing evidence against for problems in GI.

References

  1. [1]
  2. [2]
    Self-Complementary Graph -- from Wolfram MathWorld
    A self-complementary graph is a graph which is isomorphic to its graph complement. The numbers of simple self-complementary graphs on n=1 ...
  3. [3]
    [PDF] Self-complementary graphs and generalisations
    Theorem[Sachs 1962]. If G is a rsc-graph on 4k + 1 vertices, then its char- acteristic polynomial can be written as: fG(λ)=(λ − 2k). 2k. Y i=1. (λ − λi)(λ + ...
  4. [4]
    Selbstkomplementäre Graphen | Archiv der Mathematik
    Cite this article. Ringel, G. Selbstkomplementäre Graphen. Arch. Math 14, 354–358 (1963). https://doi.org/10.1007/BF01234967. Download citation.
  5. [5]
    [PDF] Self-complementary circular codes in coding theory
    In this section, we study the structure of the longest paths in graphs associated with self-complementary circular codes. Here, the length of a path may ...
  6. [6]
    [PDF] arXiv:2301.06569v1 [math.CO] 16 Jan 2023
    Jan 16, 2023 · This implies that the number of vertices of a k-regular self-complementary graph must be congruent to 1 modulo 4. Furthermore, it is well ...
  7. [7]
    Solution of the Hamiltonian problem for self-complementary graphs
    In this paper it is shown that a non-hamiltonian self-complementary graph G of order p is highly constricted, unless p = 4N and G is a particular graph G ∗ (4N) ...Missing: path | Show results with:path
  8. [8]
    Cycles in self-complementary graphs - ScienceDirect.com
    February 1977, Pages 1-9. Journal of Combinatorial Theory, Series B. Cycles in self-complementary graphs. Author links open overlay panel S.B Rao. Show more.
  9. [9]
    [PDF] Problem Set 4
    6. A graph is self-complementary if it is isomorphic to its complement. (i.e., G ! G ) For example the path P4 on 4 vertices and the cycle C5 on five vertices ...
  10. [10]
    [PDF] Restrained domination in self-complementary graphs
    The simplest example of a self-complementary graphs G with γ(G) = γr(G) is the path G = P4 which satisfies γ(G) = 2 = γr(G). As shown in Theorem 3, every Paley ...
  11. [11]
    [PDF] Laplacian Spectrum of Some Classes of Self Complementary ...
    n = 4 vertices exist. Moreover, Laplacian characteristic polynomials (LCP) of the two non-isomorphic sc graphs (C5, Bull) with 5 vertices are given below.<|separator|>
  12. [12]
    [PDF] Class Two: Self-Complementarity
    m edges. We say that a graph G is self-complementary if G is isomorphic to Gc. Observe that the trivial graph on 1 vertex and no edges is clearly self- ...Missing: definition | Show results with:definition
  13. [13]
    [1203.1818] Paley Graphs and Their Generalizations - arXiv
    Mar 7, 2012 · We will study some important properties of the Paley graphs. In particular, we will show that the Paley graphs are connected, symmetric, and self-complementary.
  14. [14]
    [PDF] What is the Rado Graph? | OSU Math
    Jul 9, 2019 · We also see that R is self-complementary by noting that extension property is self- complementary, as is our probabilistic construction of R.
  15. [15]
    All Self-Complementary Symmetric Graphs - ScienceDirect.com
    Jun 1, 2001 · In particular, we prove that apart from the Paley graphs there is another infinite family of self-complementary symmetric graphs and, in ...
  16. [16]
    On almost self-complementary graphs - ScienceDirect.com
    A graph is called almost self-complementary if it is isomorphic to one of its almost complements X c - I , where X c denotes the complement of X and I a ...Missing: Camion | Show results with:Camion<|control11|><|separator|>
  17. [17]
  18. [18]
  19. [19]
    All Self-Complementary Symmetric Graphs - ScienceDirect.com
    Jun 1, 2001 · In particular, we prove that apart from the Paley graphs there is another infinite family of self-complementary symmetric graphs and, in ...
  20. [20]
    An easier enumeration of self-complementary graphs
    R. C. READ, On the number of self-complementary graphs and digraphs, J. London Math. Soc. 38 (1963), 99-104. 2. C. BERGE, Principles of Combinatorics ...
  21. [21]
    Self-complementary graphs - ScienceDirect.com
    In this paper a new algorithm is given for the construction of self-complementary graphs, and results concerning structural properties and adjacency matrices ...
  22. [22]
    Paley Graph -- from Wolfram MathWorld
    Paley graphs are self-complementary, strongly regular, conference graphs, and Hamiltonian. All Paley graph are conference graphs (Godsil and Royle 2001, p.
  23. [23]
    [PDF] Problems Polynomially Equivalent to Graph Isomorphism
    A graph is self-complementary if it is isomorphic to its complement. THEOREM: [18] Self-complementary graph isomorphism is isomorphism complete. PROOF ...<|control11|><|separator|>
  24. [24]
    [1512.03547] Graph Isomorphism in Quasipolynomial Time - arXiv
    Dec 11, 2015 · The paper shows the Graph Isomorphism problem can be solved in quasipolynomial time, using group theoretic "local certificates" and ...Missing: self- | Show results with:self-