arXiv:2608.30407math.COAug 2026

Manuscript Offprint

arXiv:2608.30407

Edge codes constructed from unicyclic graphs

Sara Asensio, Giulia Gaggero, Naveena Ragunathan, Abhilash Saha, Adam Van Tuyl

SARA ASENSIO, GIULIA GAGGERO, NAVEENA RAGUNATHAN, ABHILASH SAHA, AND ADAM VAN TUYL

ABSTRACT. Jaramillo-Velez recently introduced edge codes, a new class of toric evaluation codes constructed from the edges of a (hyper)graph H. In the case that H is a tree, Jaramillo-Velez computed both the minimum distance and the weight distribution of the associated code. In this paper, we study edge codes associated to unicyclic graphs. Our most striking result is that computing the parameters of these codes is subtle in the case that the induced cycle has an even length because these values will depend on certain conditions regarding the length of the cycle and the size of the base field.

1. INTRODUCTION

Originally introduced by Høholdt, van Lint and Pellikaan as a generalization of one-point algebraic geometry codes [8], evaluation codes have evolved into a broad and active area of research. Evaluation codes have been investigated in several algebraic frameworks, including affine variety codes and order domain codes [4, 5], and they are now studied in their own right [9].

The codewords of an evaluation code are constituted by the evaluations of the elements of a polynomial vector space L⊆K[t1,…,ts]\mathcal{L} \subseteq K[t_1, \ldots, t_s] on a geometric object X⊆KsX \subseteq K^s, where K=FqK = \mathbb{F}_q is a finite field. A large family of evaluation codes is the family of toric codes introduced by Hansen in 2000 [7]. In this case, XX is the affine torus T=(K∗)sT = (K^*)^s, and there are two main cases that have been studied with this choice of XX. In the first case, the vector space L\mathcal{L} is derived from dd-hypersimplices [2, 3, 9, 12], and in the second case, it is generated by squarefree monomials [9, 12].

Recently, Jaramillo-Velez introduced a new family of toric codes [10]. In this case L\mathcal{L} is parametrized by the set of edges of a hypergraph. Given any hypergraph H\mathcal{H} on the vertex set V={t1,…,ts}V = \{t_1, \ldots, t_s\}, its edges EE are subsets of VV of any cardinality. Given an edge {ti1,…,tiℓ}⊆V\{t_{i_1}, \ldots, t_{i_\ell}\} \subseteq V, one can associate to it a monomial ti1⋯tiℓ∈K[t1,…,ts]t_{i_1} \cdots t_{i_\ell} \in K[t_1, \ldots, t_s]. Let L\mathcal{L} be the polynomial vector space

KE(H)=span⁡K{ti1⋯tiℓ:{ti1,…,tiℓ}∈E}.K E(\mathcal{H})=\operatorname{s p a n}_{K}\{t_{i_{1}}\cdots t_{i_{\ell}}:\{t_{i_{1}},\ldots,t_{i_{\ell}}\}\in E\}.

Therefore, the evaluation map for this family of codes is

ev:KE(H)→K∣T∣,  f↦(f(P1),…,f(P∣T∣)),\mathrm{e v}:K E(\mathcal{H})\to K^{|T|},\;f\mapsto(f(P_{1}),\dots,f(P_{|T|})),

where T={P1,…,P∣T∣}T = \{P_1, \ldots, P_{|T|}\}, and the corresponding edge toric code is CH=ev(KE(H))⊆K∣T∣\mathcal{C}_{\mathcal{H}} = \mathrm{ev}(KE(\mathcal{H})) \subseteq K^{|T|}.

An edge toric code CH\mathcal{C}_{\mathcal{H}} is a linear code of length ∣T∣|T|, i.e., it is a subspace of K∣T∣K^{|T|}. Thanks to the correspondence between the codewords and the polynomials of the K-vector space KE(H)KE(\mathcal{H}), the dimension and the minimum distance of CH\mathcal{C}_{\mathcal{H}} can also be related to properties of H\mathcal{H}. In particular, it can be proved that studying the weight distribution of the edge code associated to a hypergraph H\mathcal{H} is equivalent to studying the zeroes of all polynomials in KE(H)KE(\mathcal{H}) over the affine torus. Studying zeroes of polynomials is a general problem in algebraic geometry and there are recent works focused on this, see e.g. [1,11].

Date: September 1, 2026.

2020 Mathematics Subject Classification. 13P25, 5C65, 14G50, 94B27.

Key words and phrases. edge codes, evaluation codes, toric codes, unicyclic graphs.

S. ASENSIO, G. GAGGERO, N. RAGUNATHAN, A. SAHA, AND A. VAN TUYL

Jaramillo-Velez provided estimations for the minimum distance of edge codes coming from d-uniform clutters and computed the minimum distances of all edge codes of graphs with five vertices. Additionally, given a tree G on s vertices, he computed the number of zeroes of every polynomial in KE(G)KE(G). This allows one to compute the weight distribution of CGC_G when G is a tree. While this is not explicitly done in [10], we provide the details in Theorem 2.4.

The goal of this note is to extend Jaramillo-Velez's work to a larger family, namely the family of unicyclic graphs, that is graphs with exactly one induced cycle. In particular, we consider the problem of computing the minimum distance and weight distribution of codes constructed from unicyclic graphs, see Theorems 5.1 and 5.2. Interestingly, the weight distribution of CGC_G will depend upon the parity of the size of the induced cycle in GG. When the induced cycle has an odd length, then the number of zeroes of f∈KE(G)f \in KE(G) will only depend upon the number of terms in ff, but not the coefficients of ff. This result contrasts to the case that there is an even induced cycle in GG because the number of zeroes of f∈KE(G)f \in KE(G) will depend both on the number of terms in ff and its coefficients.

A similar question has been answered by Carvalho and Patanker in [3] for toric codes defined over hypersimplices. They computed the number of minimal and next-to-minimal codewords for a large family of hypersimplices. Notice that, even if their result can be considered more general because it applies to a larger number of codes, ours is more complete because we give the full weight distribution and not only the first two values of the distribution for edge toric codes constructed from unicyclic graphs.

The paper is organized as follows. In Section 2 we recall the remaining background. In Section 3, we consider the relationship between the edge toric code of a graph G with a leaf t with that of G∖{t}G \setminus \{t\}, the graph with the leaf removed. This analysis leads to Theorem 3.5, a general technique to remove leaves from a graph G to create a new graph G′′G'' such that we can relate the zeroes of f∈KE(G)f \in KE(G) with those of a polynomial g∈KE(G′′g \in KE(G''). In Section 4 we compute the weight distribution of the edge toric code CCsC_{C_s}, where CsC_s is an s-cycle. Finally, in Section 5, we combine these results to describe the weight distribution of CGC_G for any unicyclic graph G.