Linear codes over signed graphs
Jose Martinez-Bernal, Miguel A. Valencia, Rafael H. Villarreal

TL;DR
This paper establishes formulas connecting graph invariants to the parameters of linear codes derived from signed graphs, and explores algebraic properties related to circuits, cocircuits, and frustration index.
Contribution
It provides new formulas for code parameters and algebraic invariants of signed graphs, linking graph theory and coding theory in novel ways.
Findings
Formulas for minimum distance and Hamming weights of codes from signed graphs
Determination of regularity of ideals of circuits and cocircuits
Algebraic formula for frustration index in signed graphs
Abstract
We give formulas, in terms of graph theoretical invariants, for the minimum distance and the generalized Hamming weights of the linear code generated by the rows of the incidence matrix of a signed graph over a finite field, and for those of its dual code. Then we determine the regularity of the ideals of circuits and cocircuits of a signed graph, and prove an algebraic formula in terms of the multiplicity for the frustration index of an unbalanced signed graph.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Linear codes over signed graphs
José Martínez-Bernal
Departamento de Matemáticas
Centro de Investigación y de Estudios Avanzados del IPN
Apartado Postal 14–740
07000 Mexico City, Mexico.
,
Miguel A. Valencia-Bucio
Departamento de Matemáticas
Centro de Investigación y de Estudios Avanzados del IPN
Apartado Postal 14–740
07000 Mexico City, Mexico
and
Rafael H. Villarreal
Departamento de Matemáticas
Centro de Investigación y de Estudios Avanzados del IPN
Apartado Postal 14–740
07000 Mexico City, Mexico
Abstract.
We give formulas, in terms of graph theoretical invariants, for the minimum distance and the generalized Hamming weights of the linear code generated by the rows of the incidence matrix of a signed graph over a finite field, and for those of its dual code. Then we determine the regularity of the ideals of circuits and cocircuits of a signed graph, and prove an algebraic formula in terms of the multiplicity for the frustration index of an unbalanced signed graph.
Key words and phrases:
Generalized Hamming weight, incidence matrix, linear code, signed graph, vector matroid, edge connectivity, frustration index, circuit, cycle, regularity, multiplicity.
2010 Mathematics Subject Classification:
Primary 94B05; Secondary 94C15, 05C40, 05C22; 13P25
The first and third authors were supported by SNI, Mexico. Second author was supported by a scholarship from CONACYT, Mexico
1. Introduction
The generalized Hamming weights (GHWs) of a linear code are parameters of interest in many applications [12, 16, 20, 27, 31, 37, 42, 43, 45] and they have been nicely related to the graded Betti numbers of the ideal of cocircuits of the matroid of a linear code [19, 20], to the nullity function of the dual matroid of a linear code [42], and to the enumerative combinatorics of linear codes [3, 18, 22, 23]. Because of this, their study has attracted considerable attention, but determining them is in general a difficult problem. The notion of generalized Hamming weight was introduced by Helleseth, Kløve and Mykkeltveit in [17] and was first used systematically by Wei in [42]. For convenience we recall this notion. Let be a finite field and let be an -linear code of length and dimension , that is, is a linear subspace of with . Let be an integer. Given a linear subspace of , the support of , denoted , is the set of nonzero positions of , that is,
[TABLE]
The -th generalized Hamming weight of , denoted , is given by
[TABLE]
As usual we call the set the weight hierarchy of the linear code . The st Hamming weight of is the minimum distance of , that is, one has
[TABLE]
where is the Hamming weight of the vector , i.e., the number of non-zero entries of . To determine the minimum distance is essential to find good error-correcting codes [23].
The notion of generalized Hamming weights for linear codes was extended to matroids by Britz, Johnsen, Mayhew and Shiromoto [6, p. 332] as we now explain.
Let be a matroid with ground set , rank function , nullity function , and let be its dual matroid. The -th generalized Hamming weight of , denoted , is given by
[TABLE]
A major result of Johnsen and Verdure [19] shows that the GHWs of a matroid can be read off the minimal graded free resolution of the Stanley–Reisner ideal of the independence complex of the matroid [19, Theorem 2] (see Theorem 4.2).
We can associate to an -linear code the vector matroid on the ground set , where is a generator matrix of . The rank function (resp. nullity) of is given by (resp. ) for , where is the submatrix of obtained by picking the columns indexed by . It can be verified that the matroid does not depend on the generator matrix we choose. We call the matroid of . If is a parity check matrix of , then and . By Lemma 2.4, one has
[TABLE]
Thus computing GHWs of vector matroids is equivalent to computing those of linear codes. This relationship between the GHWs of linear codes and those of vector matroids is attributed to Wei [42, Theorem 2] (cf. Theorem 2.2). In this work we study GHWs of linear codes defined over signed graphs, combining the theory of GHWs of matroids [4, 6, 19, 20] and the combinatorial structure of signed-graphic matroids [46, 47, 48] that we introduce next.
A signed graph is a pair consisting of a multigraph with vertex set and edge set (loops and multiple edges are permitted), and a mapping , that assigns a sign to each edge. If no loops or multiple edges are permitted, is called a simple graph and is called a signed simple graph. In particular, the signed graph with (resp. ) for all , denoted (resp. ), is called the positive signed graph (resp. negative signed graph) on . There are more general definitions of signed graphs, where the edge set includes empty loops and half edges, that are essential to represent root systems [46].
Let be a signed graph. A cycle of is a simple closed path in . A cycle with an even number of negative edges is called balanced. A signed graph is balanced if every cycle is balanced. An isolated vertex is regarded as balanced. A bowtie of is the union of two unbalanced cycles which meet at a single vertex or the union of two vertex-disjoint unbalanced cycles and a simple path which meets one cycle at each end and is otherwise disjoint from them.
A central result of Zaslavsky [46, Theorem 5.1] shows the existence of a matroid with ground set , called the signed-graphic matroid of , whose rank function is
[TABLE]
where is the number of balanced connected components of the signed subgraph with edge set and vertex set . The circuits of are the balanced cycles and the bowties of . The circuits of are called the circuits of .
If , the signed-graphic matroid is the graphic matroid of whose circuits are the cycles of [28, 44]. If , the signed-graphic matroid is the even cycle matroid [46] whose circuits are the even cycles and the bowties of . The circuits of the matroids , and those of their dual matroids—as well as the related notion of an elementary integral vector—occur in coding theory [9, 34], convex analysis [29], the theory of toric ideals of graphs [2, 11, 25, 32, 39, 40], and in matroid theory [28, 33, 46, 49].
The content of this paper is as follows. In Section 2 we briefly introduce matroids and present some well known results about GHWs of matroids and linear codes.
In what follows denotes a signed graph with vertices, edges, connected components, and balanced components, and denotes a finite field of characteristic . The incidence matrix code of over the field , denoted by , is the linear code generated by the row vectors of the incidence matrix of (Definition 3.6). In Section 3 we present our main results on the generalized Hamming weights of incidence matrix codes of signed graphs and those of their dual codes, and describe the GHWs of the signed-graphic matroid of a signed graph and those of its dual matroid, in terms of the combinatorics of the signed graph.
The frustration index of , denoted , is the smallest number of edges whose deletion from leaves a balanced signed graph. The minimum distance of is bounded from above by if (Remark 5.5). We are interested in the following related invariant. The -th cogirth of , denoted , is the minimum number of edges whose removal results in a signed graph with balanced components. If and is connected, is the cogirth of , that is, the minimum size of a cocircuit of (Lemma 3.4). We denote simply by . The -th edge connectivity of , denoted or , is the minimum number of edges whose removal results in a signed graph with connected components. Note that the -th edge connectivity is a property of the underlying multigraph , that is, it is independent of . If , is the edge connectivity of and is denoted by . We will relate these graph invariants to the generalized Hamming weights and the minimum distance of incidence matrix codes.
Our main results on linear codes are the following. First, we give graph theoretical formulas for the generalized Hamming weights of the incidence matrix code of a signed graph.
Theorem 3.16* If is the incidence matrix code of a connected signed graph , then*
[TABLE]
We show that the formulas of [26, Corollary 2.13] for the generalized Hamming weights of incidence matrix codes of simple graphs can be extended to multigraphs (Corollary 3.17). Then we show combinatorial formulas for the minimum distance of the incidence matrix code of a signed graph [28, Proposition 9.2.4] (Corollary 3.18).
A family of circuits of a matroid is called non-redundant if for [4, 7]. Our next result gives graph theoretical formulas for the generalized Hamming weights of the dual code of the incidence matrix code of a signed graph. Part (a) extends the analogous result for graphs of Britz [4, Section 3].
Theorem 3.19* Let be the incidence matrix code of a connected signed graph .*
- (a)
*If or is balanced, and **resp. 1\leq r\leq s-1$$), then *resp. \delta_{r}(C)$$) is the minimum number of edges of forming a union of non-redundant cycles resp. cocycles of .
- (b)
*If and **resp. 1\leq r\leq s$$), then *resp. \delta_{r}(C)$$) is the minimum number of edges of forming a union of non-redundant balanced cycles and bowties resp. cocircuits of .
If is the incidence matrix code of a connected digraph and is its underlying multigraph, we show that and give graph theoretical formulas for the generalized Hamming weights of the dual code (Corollary 3.20). For a connected multigraph, we give formulas for the GHWs of the dual of its incidence matrix code (Corollary 3.21).
The main result of Section 4 gives explicit formulas for the regularity of the ideals of circuits and cocircuits of the vector matroid of the incidence matrix of a signed graph (Theorem 4.7). This invariant is a measure for the complexity of the minimal graded free resolution of these ideals and has been used to study polynomial interpolation problems [10].
Let be the matroid of . By Theorems 3.16 and 3.19, one has graph theoretical formulas for the weight hierarchies of and . On the other hand, using Macaulay [14], the package Matroids [8], and the formulas of Johnsen and Verdure (Theorem 4.2, Corollary 4.3), we can compute the weight hierarchies of and . Hence, our results can be used to compute the -th cogirth of and the -th edge connectivity of . The main result of Section 5 is an algebraic formulation for the frustration index of —in terms of the degree or multiplicity of graded ideals—that can be used to compute or estimate this number using Macaulay [14] (Theorem 5.4, Example 6.6). If is a graph, the frustration index of is the edge biparticity of , that is, the minimum number of edges whose removal makes the graph bipartite. In Section 6 we illustrate how to use our results in practice with some examples.
Our main results and their proofs show that the weight hierarchies of the incidence matrix code and its dual code of a signed graph can be computed using the field of rational numbers as the ground field. To compute the GHWs of and over a finite field of characteristic , we use the incidence matrix of (resp. ) over the field if (resp. ). One can also use the rational numbers to compute the cycles, circuits, and cocircuits of a signed graph, as well as its -th cogirth, frustration index, and -th edge connectivity. In Appendix A we give procedures for Macaulay [14] that allow us to obtain this information for graphs with a small number of vertices, see the examples of Section 6. The package Matroids [8] plays an important role here because it computes the circuits and cocircuits of vector matroids over the field of rational numbers; however the problem of computing all circuits of a vector matroid is likely to be NP-hard [21, 38] (cf. [19, p. 76]). The minimum distance of any linear code can be computed using SageMath [30]. For signed simple graphs one can also compute the minimum distance using Proposition 5.6 and the algorithms of [12, 24]. For methods to calculate higher weight enumerators of linear codes see [5] and the references therein.
2. Matroids and linear codes
A matroid is a pair where is a finite set, called the ground set of , and is a function, called the rank function of , satisfying:
- ()
;
- ()
If and , then ;
- ()
If and , then .
An independent set of a matroid is subset such that . In particular the empty set is an independent set. A base is a maximal independent set. A subset of the ground set which is not independent is called dependent and a circuit of is a minimal dependent set. We denote by the family of all circuits of . The rank of the matroid , denoted , is . The nullity of , denoted , is defined by
[TABLE]
and the nullity of , denoted , is . Let be a matroid. Its dual is the matroid with the same ground set and rank function given by
[TABLE]
see [28, p. 72]. The nullity function of is denoted by . One can verify that .
A family of circuits of a matroid is called non-redundant if for [4, 7]. Let be a subset of the ground set . The degree or non-redundancy of is the maximum number of non-redundant circuits contained in , and it is denoted by .
Lemma 2.1**.**
[7, p. 306, Table A.1(6)]** Let be a matroid, let be a subset of , and let be the nullity function of . Then .
Theorem 2.2**.**
[42, Theorem 2]** Let be an -linear code and let be the dual of the vector matroid of . Then, the -th generalized Hamming weight of is given by
[TABLE]
By Lemma 2.1, we can replace the inequality by . This result suggests how to define the generalized Hamming weights of any matroid .
Definition 2.3**.**
[6, p. 332] Let be a matroid with nullity function . The generalized Hamming weights of are defined as
[TABLE]
Lemma 2.4**.**
Let be a linear code of length and dimension and let be its vector matroid. Then for and for .
Proof.
By Lemma 2.1 and Theorem 2.2, we obtain for . The matroid associated to is . Hence for . ∎
Theorem 2.5**.**
([1, Corollary 1.3], [20, Proposition 6])* Let be a matroid and let be its nullity function. The following hold.*
[TABLE]
Proof.
According to [44, Theorem 2, p. 35], one has . Therefore the first equality follows from
[TABLE]
On the other hand, recall that by definition of , one has
[TABLE]
Therefore, applying Lemma 2.1, the second equality follows. ∎
Corollary 2.6**.**
Let be an -linear code and let be the vector matroid of . Then the following equalities hold:
[TABLE]
Proof.
By Lemma 2.4, we obtain for and for . Thus the result follows from Theorem 2.5. ∎
The number in the right hand side of the second equality of Corollary 2.6 is the -th circuit number of and is denoted [4]. The -th cocircuit number is defined similarly.
If is an -linear code, then [18, 42]. The following duality theorem of Wei is a classical result in this area.
Theorem 2.7**.**
(Wei’s duality [42, Theorem 3])* Let be an -linear code. Then*
[TABLE]
This result was generalized by Britz, Johnsen, Mayhew and Shiromoto [6, Theorem 5] from linear codes to arbitrary matroids.
3. Generalized Hamming weights over signed graphs
In this section we present our main results on linear codes. To avoid repetitions, we continue to employ the notations and definitions used in Sections 1 and 2.
A multigraph consists of a finite set of vertices, , and a finite multiset of edges, . Edges of are of two types. A link , with two distinct endpoints, in and a loop, , with two coincident endpoints. As is a multiset, multiple edges are allowed. The number of edges of counted with multiplicity is denoted by . A multigraph with no loops or multiple edges is called a simple graph or a graph. Let be a multigraph. A cycle of is a simple closed path in . A loop is a cycle of length , a pair of parallel links is a cycle of length , a triangle is a cycle of length 3, and so on. A maximal connected subgraph of a graph is called a connected component of the graph.
Theorem 3.1**.**
([46, Theorem 5.1], [48, Theorem 2.1])*
Let be a signed graph. Then there exists a matroid on whose circuits are the balanced cycles and the bowties of .*
The matroid is called the signed-graphic matroid of . The circuits of are called the circuits of . If is balanced, then is the graphic matroid of .
Definition 3.2**.**
Let be an unbalanced (resp. balanced) signed graph. A cutset of is a set of edges whose removal from increases the number of balanced connected components (resp. connected components) of . A cocircuit of is a minimal cutset of . If is balanced, a cocircuit of is called a cocycle or bond of .
Lemma 3.3**.**
[28, Proposition 2.3.1]** If is a balanced signed graph, then the cocircuits of are the cocircuits of the graphic matroid of , that is, the circuits of .
Lemma 3.4**.**
[46, Theorem 5.1(i)]** If is a connected unbalanced signed graph and is its signed-graphic matroid, then the cocircuits of are the cocircuits of , that is, the circuits of the dual matroid .
Proof.
Let be the rank function of . We set and . Take a cocircuit of . As is connected, one has and if is unbalanced, and and if is balanced. Then . According to [46, Theorem 5.1(j)], one has
[TABLE]
Therefore . Since is a minimal cutset, it follows that is closed, that is, for each . Indeed, from the equality , and the minimality of , we get . Hence, using Eq. (3.1), we obtain for each . As a consequence, is a maximal set of rank . Thus, by [44, Lemma 1, p. 38], is a hyperplane of in the sense of [44], and by [44, Theorem 2, p. 39], is a cocircuit of . Similarly, if is a cocircuit of , it is seen that is a cocircuit of . ∎
Lemma 3.5**.**
Let be a connected signed graph, let and be the rank and nullity functions of the signed-graphic matroid of . The following hold.
- (i)
If , then is equal to the minimum number of edges of forming a union of non-redundant balanced cycles and bowties of .
- (ii)
*If and is unbalanced resp. balanced, then is the -th cogirth *resp. -th edge connectivity \lambda_{r}(G_{\sigma})$$) of .
- (iii)
If , then is equal to the minimum number of edges of forming a union of non-redundant cocircuits of .
Proof.
(i): By Theorem 3.1, the circuits of are the balanced cycles and the bowties of . Hence, it suffices to recall the following formula of Theorem 2.5:
[TABLE]
(ii): Let be the edge set of , which is the ground set of , and let be the vertex set of . According to [46, Theorem 5.1(j)] the rank function of satisfies
[TABLE]
where is the number of balanced connected components of the signed subgraph with edge set and vertex set . Therefore, by Theorem 2.5, we obtain
[TABLE]
for . If is unbalanced (resp. balanced), then by making in Eq. (3.2) we get (resp. ). Therefore
[TABLE]
where is the number of connected components of the signed subgraph .
(iii): By Lemmas 3.3 and 3.4, the circuits of the dual matroid of are the cocircuits of the signed graph , and by Theorem 2.5 we get
[TABLE]
Hence, the required equality follows noticing that . ∎
Definition 3.6**.**
Let be a signed graph with vertices and edges, let be a field, and let be the -th unit vector in . The incidence matrix of over the field is the matrix whose column vectors are given by:
- (i)
(resp. ) if is a link with (resp. );
- (ii)
(resp. ) if is a loop with (resp. ).
Note that the columns of are defined up to sign, so one can pick or if is a link with . To avoid ambiguity we could normalize and pick if . The order of the columns of and the choice of sign have no significance for the invariants of linear codes, signed graphs, and Stanley–Reisner ideals that we want to study.
If is a multigraph with vertices , the incidence matrix of over a field is the incidence matrix of the negative signed graph , that is, the matrix whose columns are all vectors such that is an edge of . A digraph consists of a multigraph with vertices where all edges of are directed from one vertex to another. The edges or arrows of are ordered pairs of vertices with an edge of , where represents the edge directed from to . The incidence matrix of over a field is the incidence matrix of the positive signed graph , that is, the matrix whose columns are all vectors such that is an edge of .
Theorem 3.7**.**
[46*, Theorems 8B.1, 8B.2]**
Let be a signed graph and let be its incidence matrix over a field of characteristic . The following hold.*
- (a)
If , then the vector matroid of is the signed-graphic matroid .
- (b)
If , then is the graphic matroid of .
Proposition 3.8**.**
Let be a signed graph with vertices, connected components, balanced connected components, and let be its incidence matrix over a field . Then
[TABLE]
Proof.
Assume . By Theorem 3.7(a), the signed graphic matroid is the vector matroid . According to [46, Theorem 5.1(j)], the rank of is . Thus in this case . Assume . By Theorem 3.7(b), the graphic matroid is the vector matroid . If is connected, then the bases of the matroid are the spanning trees of [44, p. 28], and . As a consequence, if has components, one has . If is balanced, then , and by the previous two cases , regardless of the characteristic of the field . ∎
Corollary 3.9**.**
Let be a digraph with vertices and connected components, and let be its incidence matrix over a field . Then, .
Proof.
Let be the underlying unoriented simple graph of . Consider the positive signed graph . Note that is balanced. Since and have the same incidence matrix, the result follows from Proposition 3.8. ∎
Definition 3.10**.**
The incidence matrix code of a signed graph (resp. multigraph , digraph ), over a finite field , is the linear code generated by the rows of the incidence matrix of the signed graph (resp. multigraph , digraph ).
Corollary 3.11**.**
Let be a connected signed graph with vertices and edges, and let be the incidence matrix code of over a finite field of characteristic . Then
- (a)
* **resp. C^{\perp}$$) is an *resp. [m,m-s]$$) linear code if and is unbalanced.
- (b)
* **resp. C^{\perp}$$) is an *resp. [m,m-s+1]$$) linear code if or is balanced.
Proof.
This follows from Proposition 3.8 noticing that . ∎
Definition 3.12**.**
Let be a multigraph. A bowtie of is the union of two odd cycles which meet at a single vertex or the union of two vertex-disjoint odd cycles and a simple path which meets one cycle at each end and is otherwise disjoint from them.
Corollary 3.13**.**
Let be a multigraph and let and be the positive and negative signed graphs, respectively. The following hold.
- (a)
The circuits of the signed-graphic matroid are the cycles of , that is, is the graphic matroid of .
- (b)
The signed-graphic matroid is the vector matroid, over any field , of the incidence matrix of whose columns are of the form .
- (c)
The balanced resp. unbalanced cycles of are the even resp. odd cycles of . A circuit of is either an even cycle or a bowtie of .
- (d)
If is a balanced signed graph, then is the graphic matroid of .
Proof.
(a): There are no unbalanced cycles of . Hence, by Theorem 3.1, the circuits of are the cycles of .
(b): Let be the characteristic of the field . If , by Theorem 3.7, is the vector matroid of the incidence matrix of and the columns of this matrix have the required form. If , the graphic matroid of is the vector matroid of the incidence matrix of [44, Theorem 3, p. 149]. By part (a), is the graphic matroid of . Thus is the vector matroid of . The columns of have the required form because in this case .
(c), (d): These follow readily from Theorem 3.1. ∎
Remark 3.14**.**
Let be a multigraph and let be the incidence matrix of over the field of rational numbers. Since is the graphic matroid of , to compute all cycles of one can use Macaulay [14] and the package Matroids [8].
Corollary 3.15**.**
If is the incidence matrix of a multigraph over a field of , then the circuits of the vector matroid are the even cycles and bowties of .*
Proof.
It follows from Theorem 3.7(a) and Corollary 3.13(c) by considering . ∎
Our main results on linear codes are the following. First, we give graph theoretical formulas for the GHWs for the incidence matrix code of a signed graph.
Theorem 3.16**.**
Let be the incidence matrix code of a connected signed graph with vertices, -th cogirth , -th edge connectivity , over a finite field of . Then, the -th generalized Hamming weight of is given by
[TABLE]
Proof.
Let be the incidence matrix of and let be the rank function of the vector matroid . According to Proposition 3.8, if and is unbalanced, and if or is balanced.
Assume that . By Theorem 3.7(a), the signed-graphic matroid is the vector matroid . Hence, using Lemmas 2.4 and 3.5(ii), one has
[TABLE]
Assume that . By Theorem 3.7(b), is the graphic matroid and, by Corollary 3.13(a), is also the graphic matroid . As is balanced, by Lemmas 2.4 and 3.5(ii), we get . ∎
Let be a multigraph. The -th cogirth of is the minimum number of edges whose removal results in a multigraph with bipartite connected components. If , is denoted . For simple graphs, the following combinatorial formulas for the generalized Hamming weights were shown in [26].
Corollary 3.17**.**
Let be the incidence matrix code of a connected multigraph with vertices over a finite field of . Then
[TABLE]
Proof.
It follows from Theorem 3.16 by considering the negative signed graph and noticing that is balanced if and only if is bipartite. ∎
The next result shows combinatorial formulas for the minimum distance of the incidence matrix code of a signed graph [28, Proposition 9.2.4].
Corollary 3.18**.**
Let be the incidence matrix code of a connected signed graph with vertices, cogirth , edge connectivity , over a finite field of . Then, the minimum distance of is given by
[TABLE]
Proof.
It follows by making in Theorem 3.16. ∎
Our next result gives graph theoretical formulas for the generalized Hamming weights of the dual code of the incidence matrix code of a signed graph.
Theorem 3.19**.**
Let be a connected signed graph with vertices and edges, and let be the incidence matrix code of over a finite field of characteristic . The following hold.
- (a)
*If or is balanced, and **resp. 1\leq r\leq s-1$$), then *resp. \delta_{r}(C)$$) is the minimum number of edges of forming a union of non-redundant cycles resp. cocycles of .
- (b)
*If and **resp. 1\leq r\leq s$$), then *resp. \delta_{r}(C)$$) is the minimum number of edges of forming a union of non-redundant balanced cycles and bowties resp. cocircuits of .
Proof.
(a): Assume and . Let be the incidence matrix of . By Theorem 3.7(b), the vector matroid is the graphic matroid . Thus the circuits of are the cycles of . Therefore, by Corollary 2.6, we get
[TABLE]
Assume and . By the previous part, is the graphic matroid . The circuits of are the cocycles of [44, p. 41], that is, these are edge sets whose removal from increases the number of connected components of and are minimal with respect to this property. The dual matroid of is the vector matroid of [44, p. 141]. Therefore, by Corollary 2.6 and the equality , we get
[TABLE]
Assume that is balanced. If , the formulas for and follow from the two previous cases. Assume . By Theorem 3.7(a), the vector matroid is the signed-graphic matroid and, by Corollary 3.13(d), is the graphic matroid . Hence, we can proceed as in the previous cases.
(b): Assume . Let be the incidence matrix of . By Theorem 3.1, the circuits of are the balanced cycles and bowties of . As , by Theorem 3.7(a), the vector matroid is . Therefore the circuits of are the balanced cycles and bowties of , and by Corollary 2.6 one has
[TABLE]
Assume . As is the signed-graphic matroid , the circuits of are the cocircuits of by Lemmas 3.3 and 3.4. The dual matroid of is the vector matroid of [44, p. 141]. Hence, by Corollary 2.6 and noticing , we get
[TABLE]
This completes the proof of part (b). ∎
Corollary 3.20**.**
Let be the incidence matrix code, over a finite field , of a connected digraph with vertices and edges, and let be its underlying multigraph. Then
- (a)
**
- (b)
*If **resp. 1\leq r\leq s-1$$), then *resp. \delta_{r}(C)$$) is the minimum number of edges of forming a union of non-redundant cycles resp. cocycles of .
Proof.
Parts (a) and (b) follow from Theorems 3.16 and 3.19, respectively, by considering the positive signed graph and noticing that this is a balanced signed graph. ∎
Corollary 3.21**.**
Let be a connected multigraph with vertices and edges, and let be its incidence matrix code over a finite field of characteristic . The following hold.
- (a)
*If or is bipartite, and **resp. 1\leq r\leq s-1$$), then *resp. \delta_{r}(C)$$) is the minimum number of edges of forming a union of non-redundant cycles resp. cocycles of .
- (b)
If and , then is the minimum number of edges of forming a union of non-redundant even cycles and bowties of .
Proof.
(a): This follows from Theorem 3.19(a) noticing that, if is bipartite, then the circuits of and are the cycles of .
(b): This part follows from Corollary 3.13(c) and Theorem 3.19(b), by considering the negative signed graph . ∎
4. The regularity of the ideal of
circuits
Let be a matroid on , let be its independence complex, that is, the faces of are the independent sets of , and let be a polynomial ring with the standard grading over the field of rational numbers. It is convenient also to think of as the set of variables . The Stanley–Reisner ideal of , in the sense of [36], is the edge ideal of the clutter of circuits of , that is, is the ideal of circuits of generated by all squarefree monomials such that is a circuit of .
The simplicial complex is pure shellable, in particular the ideal is Cohen–Macaulay, and the graded Betti numbers of the Stanley–Reisner ring are the same if we replace by any other field (see [19, Remark 1, p. 78] and the references therein).
Definition 4.1**.**
Let be a graded ideal and let be the minimal graded free resolution of as an -module:
[TABLE]
The -th graded Betti number of , denoted , is , the integer is a shift of the resolution, is the projective dimension of , and the regularity of is
[TABLE]
If is Cohen-Macaulay (i.e. ) and there is a unique such that , then the ring is called level.
An excellent reference for the regularity of graded ideals and Betti numbers is the book of Eisenbud [10]. The shifts and the Betti numbers of the Stanley–Reisner ring of the independence complex of a matroid were determined by Johnsen and Verdure [19].
The following result shows that one can read the generalized Hamming weights of a matroid from the minimal graded free resolution of the ideal of circuits of .
Theorem 4.2**.**
[19, Theorem 2]** Let be a matroid, let be the Stanley–Reisner ring of the independence complex of , and let denote the -th graded Betti number of . Then the generalized Hamming weights of are given by
[TABLE]
Corollary 4.3**.**
Let be an -linear code and let be the Stanley–Reisner ring of the independence complex of the matroid of . Then
[TABLE]
Proof.
It follows from Lemma 2.4 and Theorem 4.2. ∎
The following notion of a non-degenerate code will play a role here.
Definition 4.4**.**
If is a linear code and is the -th projection map
[TABLE]
for , we say that is degenerate if for some the image of is zero, otherwise we say that is non-degenerate.
Remark 4.5**.**
If is a non-degenerate linear code, then , where is the dimension of . If all columns of a generator matrix of are non-zero, then for and is non-degenerate.
Lemma 4.6**.**
Let be the matroid on of a linear code and let resp. \Delta^{*}$$) be the independence complex of resp. M^{*}$$). The following hold.
- (a)
If , then .
- (b)
If , then .
- (c)
If is non-degenerate, then .
- (d)
If is non-degenerate, then .
Proof.
By [41, Corollary 6.3.5], the Stanley–Reisner ring has Krull dimension . As is and , one has , where is the height of the ideal . Therefore
[TABLE]
Thus . The independence complex is pure shellable [19, Remark 1, p. 78]. Hence is Cohen–Macaulay, that is, is equal to , the projective dimension of . Let be the -th graded Betti number of , with . According to [36, Theorem 3.4], the ring is level. Therefore, by making in Corollary 4.3, we get
[TABLE]
Thus the equality of (a) holds. The equality of (b) follows from (a) using duality. Parts (c) and (d) follow readily from Remark 4.5. ∎
Theorem 4.7**.**
Let be a signed graph without loops with vertices, edges, connected components, balanced components, let be the matroid on of the incidence matrix code of , over a finite field of characteristic , and let resp. \Delta^{*}$$) be the independence complex of resp. M^{*}$$). The following hold.
[TABLE]
Proof.
Let be the incidence matrix of . As has no loops, all columns of are non-zero, that is, is non-degenerate. Hence, the first two formulas follow at once from Proposition 3.8, Lemma 4.6(d), and the equality .
Assume that and suppose any is in some circuit of . Let be the parity check matrix of whose rows correspond to the circuits of (see the discussion below). The matrix is a generator matrix for and is the vector matroid . Let be the column vectors of . Take any , then is in some circuit of . Then , where for . Setting for , we get that is a row of and . Thus the -th column of is non-zero for , that is, is non-degenerate. Therefore, the third formula follows from Proposition 3.8 and Lemma 4.6(c).
Assume that or is balanced, and suppose has no bridges. Then the vector matroid is the graphic matroid of . As has no bridges, i.e., any edge belongs to a cycle, one has that every edge is in some circuit of . Hence, by the previous part, is non-degenerate. Hence, by Proposition 3.8 and Lemma 4.6(c), the fourth equality follows. ∎
5. An algebraic formula for the frustration index
Let be a connected signed simple graph with vertices, edges, frustration index , and let be its vertex set. For use below, will denote the set of projective points in the projective space defined by the column vectors of the incidence matrix of over a field of . Consider a polynomial ring over a field with the standard grading. Given a homogeneous polynomial in , that is, for some , we denote the set of zeros of in by . The vanishing ideal of , denoted , is the ideal of generated by the homogeneous polynomials that vanish at all points of .
The following characterization of balanced signed graphs is due to Harary [15]. For other characterizations of this property see [46] and the references therein.
Theorem 5.1**.**
([15, Theorem 3], [46, Proposition 2.1])* A signed simple graph is balanced if and only if its vertex set can be partitioned into two disjoint classes possible empty, such that an edge is negative if and only if its two endpoints belong to distinct classes.*
Lemma 5.2**.**
Let be a connected signed simple graph over a field of . Then
[TABLE]
Proof.
Let be the column vectors of the incidence matrix of . We set and let be the right hand side of Eq. (5.1). If is balanced, using Theorem 5.1, it is not hard to see that there is a linear polynomial , for all , such that for all , that is, and (see the discussion below). Thus we may assume that is not balanced. Pick a minimum set of edges such that the signed subgraph is balanced. We may assume that is the set of edges of and that corresponds to for . We first show the inequality . Note that . According to Theorem 5.1, the vertex set of can be partitioned into two disjoint classes and (possible empty) is such a way that an edge of is negative if and only if its two endpoints belong to distinct classes. We set
[TABLE]
To show the inequality it suffices to show the equality because this equality implies , and consequently .
Case (I): . Therefore, for . As , one has the inclusion . We claim that for . If for some , then is balanced because it is a positive signed graph, a contradiction. As , the inclusion follows because .
Case (II): and . If and joins and , then and because . Indeed, if , then is balanced by Theorem 5.1, a contradiction. If and the two endpoints of are both in or , then and because . Indeed, if , then is balanced by Theorem 5.1, a contradiction. Thus, one has the inclusion . If , then , that is, . This follows noticing that, for , one has if the endpoints of are in or , and if joins and . Therefore the equality holds.
Now, we show the inequality . Pick , for , such that . We may assume that the set is equal to , and we may also assume that is the set of edges of and that corresponds to for . It suffices to show that the signed subgraph is balanced because this implies that . There are disjoint sets and (possibly empty) such that and
[TABLE]
Note that if and only if and . If for some , then , and consequently joins and because . If for some , then , and consequently the endpoints of are in or . Therefore, by Theorem 5.1, is balanced. ∎
Let be a graded ideal of of Krull dimension . The Hilbert function of is:
[TABLE]
where . By a theorem of Hilbert [35, p. 58], there is a unique polynomial of degree such that for . The degree of the zero polynomial is .
The degree or multiplicity of , denoted , is the positive integer given by
[TABLE]
and if . If , the ideal is referred to as a colon ideal. Note that is a zero-divisor of if and only if .
Lemma 5.3**.**
[24*, Lemma 3.2]**
Let be a finite subset of over a field and let be its vanishing ideal. If is homogeneous and , then*
[TABLE]
The following algebraic formula for the frustration index can be used to compute or estimate this number using Macaulay [14] (Example 6.6).
Theorem 5.4**.**
Let be a connected unbalanced signed simple graph with frustration index over a field of , and let be the set of linear forms such that for all and . Then
[TABLE]
Proof.
The vanishing ideal does not contains linear forms. This follows by noticing that the incidence matrix of has rank equal to , the number of vertices of , because is unbalanced and connected (see Proposition 3.8). Thus for any . If is a linear form, by [12, Lemma 3.1], if and only if . Therefore, using Lemmas 5.2 and 5.3, we obtain
[TABLE]
The second equality follows by discarding all with . ∎
Remark 5.5**.**
If we allow the coefficients to be in such that not all of them are zero, we obtain the minimum distance of the incidence matrix code of over any finite field of characteristic . This follows from the results of Section 3 and Proposition 5.6 below.
The following algebraic formula for the minimum distance of an incidence matrix code can be used to compute or estimate this number using Macaulay [14] and the algorithms of [12, 24].
Proposition 5.6**.**
Let be a connected signed simple graph and let be its incidence matrix code over a finite field . Then the minimum distance of is given by
[TABLE]
Proof.
Let be the column vectors of the incidence matrix of and let be the point in for . Thus, is the set of points . Note that is the image of —the vector space of linear forms of —under the evaluation map
[TABLE]
The image of the linear function , under the map , gives the -th row of . This means that is the Reed–Muller-type code in the sense of [13]. The result now follows readily by applying [24, Theorem 4.7]. ∎
6. Examples of signed graphs
In this section we illustrate how to use our results in practice with some examples.
Example 6.1**.**
Let be a signed simple graph whose underlying graph is given in Figure 1, let be the incidence matrix code of , let be the incidence matrix of , and let be the matroid of . Assume that is either a field of characteristic or that is any field and . In either case, by Theorem 3.7(b) and Corollary 3.13(d), is the cycle matroid of and, by Proposition 3.8, the rank of is .
Therefore, the circuits of are the cycles of and they are given by
[TABLE]
Hence, by applying Theorem 3.19(a), we get the generalized Hamming weights of :
[TABLE]
.
Concretely, one has for . Let be a polynomial ring over the field . The ideal of circuits of is the squarefree monomial ideal of generated by all monomials with . Using Macaulay [14], we obtain that the minimal free resolution of is:
[TABLE]
One can verify the values of the ’s by applying Corollary 4.3 to this resolution. By Wei’s duality (Theorem 2.7), one has
[TABLE]
.
According to Theorem 3.16, for . Removing edge from , we get two connected components. Thus . To illustrate the equality , note that removing the ten edges that are not in the square of the graph results in a subgraph with eight connected components, and . The edge biparticity of is .
Example 6.2**.**
Let be the graph of Figure 1, let be a field of , and let be the incidence matrix code of . By Corollary 3.13(c), the circuits of the negative signed graph , that is, the circuits of the signed-graphic matroid , are the even cycles and the bowties of :
[TABLE]
Hence, by Theorem 3.19(b), it follows that for , and we obtain the generalized Hamming weights of :
[TABLE]
.
Let be a polynomial ring over the field and let be the ideal of circuits of the signed-graphic matroid . Using Macaulay [14], we obtain that the minimal free resolution of is:
[TABLE]
One can verify the values of the ’s by applying Corollary 4.3 to this resolution. By Wei’s duality (Theorem 2.7), we obtain the generalized Hamming weights of :
[TABLE]
.
According to Theorem 3.16, for . Next we verify these values. Removing edges and from , we get a graph with a bipartite component. Therefore, by Theorem 3.16, . To check the other values of using by Theorem 3.16, note that successively removing from the graph the edges
[TABLE]
we obtain a subgraph with bipartite connected components at the -th step. By Theorem 4.7, the regularity of is . The frustration index of is which is the edge biparticity of .
Example 6.3**.**
Let be the signed graph of Figure 2, let be the incidence matrix code of over a finite field of , and let be the vector matroid of , where is the incidence matrix of .
The incidence matrix of the signed graph is
[TABLE]
Using Procedure A.1, we obtain the following information. The ideals of circuits and cocircuits of are given by
[TABLE]
and . The generalized Hamming weights of and are
[TABLE]
Thus, by Theorem 3.16, the cogirth of the signed graph is , and one has , . The frustration index of is .
Example 6.4**.**
Let be the positive signed graph of Figure 3, let be the incidence matrix code of over a finite field , and let be the vector matroid of , where is the incidence matrix of . By Corollary 3.13(b), is the graphic matroid of the underlying graph , that is, the circuits and cocircuits of are the cycles and cocycles of .
The incidence matrix of the positive signed graph is
[TABLE]
Using Procedure A.2, we obtain the following information. The ideals of circuits and cocircuits of are given by
[TABLE]
, and . The generalized Hamming weights of and are
[TABLE]
Thus, by Theorem 3.16, the edge connectivity of is , and .
Example 6.5**.**
Let be the negative signed graph of Figure 4, let be the incidence matrix code of over a field of characteristic , and let be the vector matroid of , where is the incidence matrix of . By Corollary 3.15, is the even cycle matroid of the underlying graph , that is, the circuits of are the even cycles and bowties of .
The incidence matrix of the negative signed graph is the incidence matrix of :
[TABLE]
Using Procedure A.3, we obtain the following information. The ideals of circuits and cocircuits of are given by
[TABLE]
. The generalized Hamming weights of and are
[TABLE]
Thus, by Theorem 3.16, the cogirth of is , and , .
Example 6.6**.**
Let be the signed graph of Figure 5 and let be its underlying graph. The incidence matrix of is given in Procedure A.4. Using this procedure we obtain that the frustration index of is and the frustration index of the negative signed graph is . The minimum distance of the incidence matrix code of is if and is if . In this case in any characteristic.
Acknowledgments
We thank Thomas Zaslavsky for suggesting to generalize our work on incidence matrix codes of graphs to signed graphs, and for pointing out that the edge biparticity of a graph is a special case of the frustration index of a signed graph. Computations with Macaulay [14], Matroids [8], and SageMath [30] were important to verifying and computing examples given in this paper.
Appendix A Procedures for Macaulay2 and Matroids
In this section we give procedures for Macaulay [14], using the field of rational numbers as the ground field, to compute the generalized Hamming weights of the incidence matrix code of a signed graph and the corresponding graph theoretical invariants (-th cogirth, -th edge connectivity), as well as the ideals of circuits, cocircuits, cycles and cocycles of a signed graph, and their algebraic invariants (Betti numbers, shifts, regularity). We also give a procedure to compute the frustration index of a connected signed simple graph. In all procedures the input is a rational matrix. The package Matroids [8] plays an important role here because it computes the circuits and cocircuits of a vector matroid over the field of rational numbers.
Procedure A.1**.**
Given the incidence matrix of a signed graph over a field of , the procedure below computes the following:
- •
The ideal of circuits and the ideal of cocircuits of , and its regularity.
- •
The graded Betti numbers of the ideal of circuits and the ideal of cocircuits of .
- •
The weight hierarchies of the incidence matrix code of and of its dual code .
- •
The -th cogirth of (Theorem 3.16).
The next procedure corresponds to Example 6.3. To compute other examples just change the incidence matrix .
--Procedure for Macaulay2 loadPackage "Matroids" loadPackage "BoijSoederberg" A=transpose matrix{{1,-1,0},{1,1,0},{0,1,-1},{0,1,1},{1,0,-1},{1,0,1}} MA=matroid(A), I=ideal(MA) m=matrix{flatten entries gens gb I} N=coker m, F=res N, B=betti F, regularity N lowestDegrees B --gives the weight hierarchy of the dual of C I=ideal(dual(MA)) m=matrix{flatten entries gens gb I} N=coker m, F=res N, B=betti F, regularity N lowestDegrees B --gives the weight hierarchy of C
Procedure A.2**.**
Using the incidence matrix of a positive signed graph over a field and the Procedure A.1, we can compute the following:
- •
The ideal of cycles and the ideal of cocycles of and its regularity.
- •
The graded Betti numbers of the ideals of cycles and cocycles.
- •
The weight hierarchies of the incidence matrix code of and of its dual code, and the generalized Hamming weights of the incidence matrix code of a digraph .
- •
The -th edge connectivity of .
The next incidence matrix corresponds to Example 6.4.
--Incidence matrix for Macaulay2 A=transpose matrix{{1,-1,0},{1,-1,0},{0,1,-1},{0,1,-1},{1,0,-1},{1,0,-1}}
Procedure A.3**.**
Using the incidence matrix of a negative signed graph over a field of characteristic and the Procedure A.1, we can compute the following:
- •
The ideal of the even cycles and bowties of and the ideal of cocircuits of .
- •
The graded Betti numbers of and , and its regularity.
- •
The weight hierarchies of the incidence matrix code of and of its dual code.
- •
The -th cogirth of .
The next incidence matrix corresponds to Example 6.5.
--Incidence matrix for Macaulay2 A=transpose matrix{{1,1,0},{1,1,0},{0,1,1},{0,1,1},{1,0,1},{1,0,1}}
Procedure A.4**.**
One can use Theorem 5.4 and Macaulay [14] to compute the frustration index of a connected unbalanced signed simple graph . The incidence matrix of the following procedure corresponds to the graph of Figure 5 given in Example 6.6.
--Procedure for Macaulay2 input "points.m2" R = QQ[t1,t2,t3,t4,t5,t6,t7,t8,t9,t10] A = transpose matrix{{1,-1,0,0,0,0,0,0,0,0},{0,1,1,0,0,0,0,0,0,0}, {0,0,1,1,0,0,0,0,0,0},{0,0,0,1,1,0,0,0,0,0},{0,0,0,0,1,-1,0,0,0,0}, {0,0,0,0,0,1,1,0,0,0},{0,0,0,0,0,0,1,1,0,0},{0,0,0,0,0,0,0,1,1,0}, {0,0,0,0,0,0,0,0,1,1},{1,0,0,0,0,0,0,0,0,-1},{1,0,-1,0,0,0,0,0,0,0}, {1,0,0,-1,0,0,0,0,0,0},{0,1,0,1,0,0,0,0,0,0},{0,1,0,0,1,0,0,0,0,0}, {0,0,1,0,1,0,0,0,0,0},{0,0,0,0,1,0,0,0,0,-1},{0,0,0,0,0,1,0,0,1,0}, {0,0,0,0,0,0,1,0,1,0},{0,0,0,0,0,0,0,1,0,1},{0,0,0,0,0,1,0,1,0,0}, {0,0,0,0,0,0,1,0,0,1}} I=ideal(projectivePointsByIntersection(A,R)) M=coker gens gb I, G=gb I frustration=degree M-max apply(apply(subsets(apply(apply(apply (toList ((set{1}(set(1,-1))^(hilbertFunction(1,M)-1))/splice)- (set{0})^**(hilbertFunction(1,M)),toList),x->basis(1,M)*vector x), z->ideal(flatten entries z)),1),ideal),x-> if #set flatten entries mingens ideal(leadTerm gens x)==1 and not quotient(I,x)==I then degree(I+x) else 0)--This gives the frustration index
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] B. Anzis, M. Garrousian and S. Tohǎneanu, Generalized star configurations and the Tutte polynomial, J. Algebraic Combin. 46 (2017), no. 1, 165–187.
- 2[2] I. Bermejo, P. Gimenez and A. Simis, Polar syzygies in characteristic zero: the monomial case, J. Pure Appl. Algebra 213 (2009), 1–21.
- 3[3] T. Britz, Mac Williams identities and matroid polynomials, Electron. J. Combin. 9 (2002), no. 1, Paper 19, 16 pp.
- 4[4] T. Britz, Higher support matroids, Discrete Math. 307 (2007), no. 17-18, 2300–2308.
- 5[5] D. Britz, T. Britz, K. Shiromoto and H. K. Sørensen, The higher weight enumerators of the doubly-even, self-dual [48,24,12] code, IEEE Trans. Inform. Theory 53 (2007), no. 7, 2567–2571.
- 6[6] T. Britz, T. Johnsen, D. Mayhew and K. Shiromoto, Wei-type duality theorems for matroids, Des. Codes Cryptogr. 62 (2012), no. 3, 331–341.
- 7[7] T. Brylawski, Appendix of matroid cryptomorphisms, Theory of matroids, pp. 298–316, Encyclopedia Math. Appl., 26 , Cambridge Univ. Press, Cambridge, 1986.
- 8[8] J. Chen, Matroids , A package for computations with matroids, version 0.9.6, 2018.
