arXiv:2609.07580math.COSep 2026

Manuscript Offprint

arXiv:2609.07580

The Neighbor Graph of Linear Complementary Dual (LCD) Codes

Javier de la Cruz, Anna-Lena Horlemann, Marc Newman, Carlos Vela Cabello, Wolfgang Willems

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Linear complementary dual (LCD) codes form an important class of linear codes with applications in cryptography, classical error correction, and quantum coding theory. In this paper, we study the neighbor relation on LCD codes over finite fields and the graph induced by this relation, where two codes are adjacent whenever they intersect in codimension one. We determine the number of neighbors of an LCD code that are also LCD, and we use this result to analyze the structure of the corresponding neighbor graph. In particular, we prove its regularity over arbitrary finite fields and establish further regularity properties for its main structural subgraphs in the binary and odd-characteristic cases. These results provide a graph-theoretic framework for the study of LCD codes and reveal a strong combinatorial regularity in their neighborhood structure.

1 Introduction

Error-correcting codes are fundamental in ensuring reliable data transmission and secure communication. Among them, linear complementary dual (LCD) codes, first introduced by Massey in 1992, have attracted significant interest due to their unique algebraic structure and wide range of applications [14]. LCD codes are defined as linear codes whose intersection with their dual is trivial, or—alternatively—that the vector space generated by the code and its dual is the whole ambient space. This property makes LCD codes particularly robust against certain cryptographic attacks and enhances their effectiveness in error correction [4].

Historically, LCD codes were first studied in the context of cyclic codes, where they were shown to have efficient algebraic constructions over finite fields. In [7] the authors generalized previous results on LCD cyclic codes, offering a unified framework for the

*The authors were supported by a Leading House for the Latin American Region Research Partnership Grant, administered by the University of St.Gallen and mandated by the Swiss State Secretariat for Education, Research and Innovation (SERI), Switzerland.

study and characterization of LCD group codes as ideals of the group algebra FqG\mathbb{F}_q G. At the same time, the algebraic structure and classification of LCD codes have attracted considerable attention, including the study of families with prescribed automorphism groups [2]. Moreover, the construction and classification of MDS LCD (maximum distance separable LCD codes) codes have become an active area of research due to their optimal trade-off between redundancy and error-correcting capability [1, 16].

One of the more recent applications of LCD codes is quantum error correction. Quantum codes require special algebraic structures to protect quantum information from decoherence and noise. While self-orthogonal codes are used in certain quantum error-correcting code constructions, LCD codes have emerged as a powerful tool in the design of entanglement-assisted quantum error-correcting codes (EAQECCs). These codes allow quantum states to be protected against errors, utilizing entanglement between quantum systems to improve the efficiency and performance of error correction [15, 11, 13].

In this paper, we study the neighborhood relation of LCD codes, i.e., LCD codes that intersect in co-dimension one—meaning that they are related to one another through small, localized changes. The concept of code neighbors has been widely used for various code classes, as it provides valuable insights into their structure and performance. For instance, it can help identify codes with good parameters, classify codes based on shared properties, and develop adaptive decoding techniques where the decoder can dynamically switch between neighboring codes to correct errors more efficiently. In a previous study, Dougherty [9] investigated the neighbors of binary self-dual codes and described the neighbor graph as a tool to analyze both the codes and their neighbors. Inspired by this approach, the present work focuses on LCD codes—exploring their neighbors and examining the corresponding neighbor graph to gain deeper insights into their structure and potential applications in coding theory.

The graph representation of code neighbors is constructed by treating each code as a vertex and connecting two codes with an edge if they are neighbors. By applying tools from graph theory to this representation, we can extract valuable information about the codes' relationships. The insights might provide a powerful tool for both constructing better codes and designing more efficient decoding techniques in the future.

Our main results are the following:

  • In Section 3, Theorem 3.5 specifies the number of neighbors of an LCD code over Fq\mathbb{F}_q that are also LCD codes. This result assists in describing the regularity of these graphs.

  • In Sections 4 and 5, we study the specific structures depending on the parity of qq; that is, in Theorem 4.17 and Corollary 5.11 we provide the regularity of the main structural subgraphs of the LCD neighbor graphs.

The paper is structured as follows: in Section 2, we first state the necessary preliminaries on LCD codes and neighbors, including some new results on code neighbors. Then, in Section 3, we derive theoretical results on neighbors of LCD codes. In Section 4 we analyze the subgraphs of the LCD neighbor graph for q=2q = 2 as well as for odd qq in Section 5. Finally, in Section 6 we give some conclusions and further research.