The incidence matrix of a $q$-ary graph
Michela Ceria, Relinde Jurrius

TL;DR
This paper introduces a definition of $q$-ary graphs and explains how to construct their incidence matrices, linking these concepts to the theory of $q$-matroids.
Contribution
It proposes a new definition for $q$-ary graphs and details the construction of their incidence matrices, connecting graph theory with $q$-matroid theory.
Findings
Defined the concept of $q$-ary graphs
Described the construction of incidence matrices for $q$-ary graphs
Linked $q$-ary graphs to $q$-matroid theory
Abstract
In this short note we will propose a definition of a -ary graph. Furthermore, we describe how to make an incidence matrix for it, with an eye on the corresponding -matroid.
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.
The incidence matrix of a -ary graph
Michela Ceria
Dept. of Mechanics, Mathematics & Management, Politecnico di Bari, Via Orabona 4 - 70125 Bari - Italy; [email protected]
Relinde Jurrius
Faculty of Military Sciences, Netherlands Defence Academy, The Netherlands; [email protected]
Abstract
In this preprint we discuss a definition of a -ary graph. Furthermore, we describe how to make an incidence matrix for it, with an eye on the corresponding -matroid.
1 Introduction
Ever since the re-discovery of -matroids it has been an open question what the corresponding -analogue of a graph is. The idea that vertices are -dimensional spaces and edges are -dimensional spaces, is relatively straightforward, but does not answer how to relate this to -matroids. This paper will also not directly answer this question, but we will do this via the detour of the incidence matrix of a -ary graph. An important role in our proposed definition is inspired by the notion of a -regular -ary graph, as defined in [2] in order to study the -analogue of a strongly regular graphs. We will define the incidence matrix of a -ary graph with -matroids in mind.
This manuscript is meant as a draft, an therefore lacks several preliminaries and references. We refer the reader to [5] for more information on matroids and specifically to Chapter 5 for matroids coming from graphs. For completeness we will shortly recall -matroids and their representation.
Definition 1**.**
A -matroid is a pair with a finite dimensional vector space and a function, the rank function, with for all :
- (r1)
**
- (r2)
If then .
- (r3)
* (semimodular)*
An important class of matroids are the representable matroids.
Definition 2**.**
Let and be a matrix over . Let and a matrix whose row space is . Then is the rank function of a -matroid: we call a representation of the -matroid.
A representation of a -matroid is not unique: we will go in details later. Geometrically speaking, representable matroids are in bijection with -systems, the -analogue of projective systems. See [6, 1].
2 Defining a -ary graph
We propose the following definition of a -ary graph. It is inspired by [2], where -regular -ary graphs are defined.
Definition 3**.**
The vertices of our -ary graph are the subspaces of dimension of . The edges are some subspaces of dimension . Furthermore, the edges have to satisfy the following: for every vertex and all edges adjacent to it (this is the neighbourhood of this vertex), it holds that the union of all these edges is equal to a subspace of . Calling the degree of this subspace , we say that has degree .
To avoid degenerate situations, we ask that the vertices of degree at least one do not all lie in a proper subspace of . (In that case, we take a smaller space over which we define the -ary graph.) Note that we are ambiguous with the 1-dimensional subspaces of that have degree 0, i.e., are not adjacent to any edge. These are isolated vertices that we might include if we want all vertices to form a subspace, but in practice we can just ignore them. (As in the classical case, where adding isolated vertices does not really give anything interesting.)
This definition is in fact equivalent to the following, that introduces coordinates and hence will be more useful in our proofs.
Definition 4**.**
Let and let be a set of -dimensional subspaces of , the edges. Then is a -ary graph if for all the -graph property holds: If and are (adjacent) edges, then is also an edge.
There are a few elementary lemmas in graph theory that now have a nice -analogue. First, we can relate the degrees and number of edges of a -ary graph. This is a straightforward -analogue of the classical result that the sum of the degrees of all vertices of a graph is equal to twice the number of edges.
Lemma 5**.**
The following holds for the vertices and edges in a -ary graph.
[TABLE]
We now introduce some elementary definitions.
Definition 6**.**
A walk in a -graph is a sequence of vertices and edges such that every edge is incident with the vertices and . If all vertices and all edges are distinct, we call this walk a path. If all edges are distinct and , it is called a cycle.
Note that for graphs, we ask for a path only for all vertices to be distinct, and this implies all edges are distinct. For -graphs, this implication does not hold. If are vertices on the same edge , we do not want to be a path. Because if it was, the next part of the definition makes a cycle.
Definition 7**.**
A -ary graph is connected if there is a path between every two vertices.
Definition 8**.**
A subgraph of the -ary graph is a -ary graph whose edges are a subset of the set of edges of and that satisfies the -graph property.
Definition 9**.**
A subgraph that does not contain a cycle is called a forest. If it is connected, it is called a tree.
The next result is a -analogue of the classical result that the number of vertices and edges in a tree differ by 1.
Lemma 10**.**
The following holds for a -ary tree.
[TABLE]
Proof.
We do this by inductively adding edges to our tree. With one edge, the formula clearly holds, because there are vertices on one edge. When adding an extra edge, it will intersect the existing graph in exactly one vertex, otherwise it will not be connected or will create a cycle. So, there is one edge and vertices added to the graph, and the formula still holds. ∎
We make some examples of -ary graphs.
Example 11*.*
We consider the -analogues of some very small graphs: the path (two edges) and the triangle (three edges). Because the neighbourhood of a vertex needs to be a space, we find that the -analogue of is in and consists of all edges (2-dimensional spaces) through one vertex (1-dimensional space). Since this is a tree, Lemma 10 holds: the number of vertices is equal to 1 (the common vertex) plus other vertices for each edge. To see that Lemma 5 holds, note that there is one vertex of degree 2 and all other vertices have degree 1.
The -analogue of has as edges all 2-dimensional spaces of . It has vertices that are all of degree 2, and edges. Since , we see Lemma 5 holds. ∎
Example 12*.*
We make two examples of trees in , that are the -analogues of , the path of length , and , the star with 4 rays. For we have the following vertices:
[TABLE]
The vertices , and now need another edge in order to make this a proper -ary graph. This gives
[TABLE]
Together, they for a -ary graph. Most vertices have degree , except for , and that have degree 2. For we do something similar. The center of the star is , then we get the following edges.
[TABLE]
We now need to add all other 2-dimensional spaces through as an edge. So in total there are 15 edges. All vertices in this graph have degree 1, except for that has degree . Since both graphs are trees, they satisfy Lemma 10. For , we get that . Not all 1-dimensional spaces of are vertices of the graph. For we see that , which are all 1-dimensional subspaces of .
Both these trees are maximal in , in the sense that they are not subgraphs of trees with a larger number of edges. However, they do not have the same number of vertices and edges. ∎
We point out the next result about how to interpret the -ary graph property in a geometric way.
Lemma 13**.**
Consider all edges through a point of degree . Then for each edge we can find a basis , such that and the are exactly all -dimensional subspaces of a certain -dimensional space.
Proof.
From the definition we know that and all vertices adjacent to it are exactly all -dimensional subspaces of a -dimension space, the neighbourhood of . Take a -dimensional subspace inside this neighbourhood that does not contain . Now there is a bijection between -dimensional subspaces of and the edges through . Indeed, every edge through intersects in a -dimensional space and every edge intersects in a different -dimensional subspace. Moreover, every -dimensional subspace of , together with , spans an edge through by the -ary graph property. Denoting a -dimensional space of by , we conclude that each edge can be written in the form with . ∎
3 The incidence matrix
Our goal is to make an incidence matrix for a -ary graph. In order to motivate this definition, we first have a closer look on how to make an incidence matrix of a graph, and write this process in a way that leads to the -analogue we are looking for.
An incidence matrix of a graph has rows indexed by the vertices and columns indexed by the edges. An entry is if the vertex corresponding to the row and edge corresponding to the column are incident, otherwise it is zero. Every edge thus gets “represented” by a column, which is a vector in . This vector has Hamming weight 2, and its support corresponds to the set of vertices the edge is incident with.
From a matroid point of view, we could have also chosen to make the incidence matrix over . In that case, one choses an arbitrary direction for every edge. For the representation of an edge (i.e., column of the incidence matrix) this results in a and on the positions indexed by the initial and final vertex of the edge. Again, we have a vector of Hamming weight 2, and its support corresponds to the set of vertices the edge is incidence with. Furthermore, in order to make sure that every column has exactly one and one , we ask that the column is orthogonal to the all-one vector: this is a vector of full Hamming weight.
This process can be extended to other fields. It is well-known that matroids that are representable over and are representable over any field. This representation can be found in a similar matter as before: make an incidence matrix of the graph where every edge corresponds to a column of the incidence matrix. This column vector needs to have Hamming weight 2, its support should correspond to the set of vertices the edge is incident with, and the vector needs to be orthogonal to the all-one vector. This is the formulation that inspires the -analogue.
The incidence matrix of a -ary graph in will be a matrix over the field extension . Again every edge gets represented by a column. This is going to be a vector in . The vector has rank weight 2 and its support is the subspace corresponding to the edge. Furthermore, the vector is orthogonal to a fixed full-weight vector . Since all these entries need to be linearly independent as elements of , we need that . In fact, we take from now on. In our examples, we will often take , where is a primitive element of the field extension.
Before continuing to the incidence matrix, we focus on how the columns are determined.
Definition 14**.**
Let be an edge of a -ary graph in and let be a full-weight vector in . A representation with respect to for is a vector satisfying and .
Remark 15*.*
Note that and are isomorphic as vector spaces over . This isomorphism depends on the choice of a basis of the field extension , and the entries of the full-weight vector can be taken as this basis. Then plays an important role in this isomorphism: given , the isomorphism is given by . In particular, this implies that vectors are linearly independent over if and only if are linearly independent over . We will use this fact extensively.
If it is clear from the context, we will omit the dependence on when talking about representations. There are options for representations. In fact, if is a representation, then is as well. We prove some elementary properties of representations.
Lemma 16**.**
If and are representations of the same edge , then for all such that we have that is a representation of as well.
Proof.
First of all, note that is orthogonal to . Also, multiplication by does not change the rank support of a vector (see [4, Proposition 2.3]). We have left to show that . By the same paper, we have that . Now cannot have dimension 0 unless . It can also not have dimension , because if has rank weight 1, there would be a nonzero vector over that is orthogonal to , and this can not happen because the entries of are elements of that are linearly independent over . We conclude that has dimension and is thus equal to . ∎
Proposition 17**.**
A representation of an edge is unique up to multiplication by .
Proof.
The representation of an edge has rank weight 2, that means that there are two non-zero entries and such that the other entries are linear combinations of those over . Moreover, the representation has to be orthogonal to . So in order to find a representation, we have to find non-zero and that satisfy a linear equation over . This can be solved by taking any element of as , and then is fixed. So we have possibilities for a representation of a given edge. Since we have seen that , it follows that these representations are -multiples of each other. ∎
Recall that we want to make an incidence matrix where every column is the representation of an edge of the -ary graph. But we cannot take any representation we like for each edge: we want to take into account the -ary graph property somehow. This leads us to the following definition.
Definition 18**.**
Take a connected subset of edges of a -ary graph, and consider their representations with respect to a fixed full-weight vector . We call this set of representations a compatible set of representations if the following holds. For any representations of edges adjacent to the same vertex, we can find vectors such that
- •
the common vertex is ;
- •
* is a representation of the edge ;*
- •
for any and the vector one of the following holds:
- –
* and , or*
- –
* and , moreover, is a representation of the edge .*
In the last point, the space is always an edge because of the -ary graph property. It can either be an edge of which we already have a representation in our set, or not. The last point in this definition reflects the -ary graph property.
We can slightly extend our definition to edges that are not connected. Remember that if we have a graph of connected components, we can always make it into a connected graph by adding edges.
Definition 19**.**
Take a subset of edges of a -ary graph, and consider their representations. We call this set of representations a compatible set of representations if all connected components have compatible representations and moreover for any minimal set of edges needed to make a connected set, we can find representations such that the total of representations form a compatible set.
The following is direct from the definitions.
Lemma 20**.**
Any subset of a set of compatible representations is again a set of compatible representations.
Proof.
The statement follows taking the ’s corresponding to the vectors that are not in the subspace as equal to zero. ∎
In a set of compatible representations, we can multiply a representation by a scalar in and the set stays compatible. However, multiplication by a scalar in does not result in another compatible set of representations.
Lemma 21**.**
Suppose is a compatible set of representations of edges adjacent to the same vertex. Then for any the set is again a compatible set of representations.
Proof.
We will show that the choice of basis vectors satisfies the properties given in Definition 18. For we have that
[TABLE]
and , so and are a representation of the same edge.
Now since is a compatible representation, we have for any that if and only if , hence if and only if . We have left to show that if the vector is nonzero, it is a representation of the edge . This follows again directly from the fact that is a compatible representation: then if the vector is nonzero, is a representation of the edge , which is the same statement. We conclude that is a compatible set of representations. ∎
This proof does not hold if we take , since we cannot multiply the vectors by an element of . The next example shows that the statement is in fact false for .
Example 22**.**
Consider the -analogue of , as introduced in Example 11, over . This -ary graph has edges, all adjacent to the same vertex. Let be a primitive element of with and take \mathbf{u}=\left[\begin{array}[]{ccc}1&\alpha&\alpha^{2}\end{array}\right]^{\mathsf{T}}. We claim the following set of representations is a compatible one:
[TABLE]
We need to find as in the definition. Take , , , and . It is clear that the vectors have rank support , and , respectively.
Now we have to consider all linear combinations with . It is straightforward to check that if and only if , and this is the same for the linear combination . Assume . If only one of the ’s is nonzero, it is clear that is a representation of . Assume now two out of three ’s are nonzero, for example (the other cases go similarly). Then and also . We have seen that is a representation of . We conclude that is a compatible set of representations.
Now suppose we would replace by . Note that so we are still considering the same edges. Take and . Then we get \mathbf{v}=\left[\begin{array}[]{ccc}\alpha&\alpha&\alpha^{2}\end{array}\right]^{\mathsf{T}}. The rank support of this vector is . This space does not even contain , which is the common vertex of the edges represented by , and . Hence is not a compatible set of representations.
However, we can multiply compatible representations by an element of , as long as we multiply all representations by the same scalar.
Lemma 23**.**
Suppose is a compatible set of representations w.r.t. some fixed full-weight vector of edges adjacent to the same vertex. Then for any the set is again a compatible set of representations, but with respect to the full-weight vector .
Proof.
First of all, note that is indeed a full-weight vector. We will show that the choice of basis vectors satisfies the properties given in Definition 18, but with respect to instead of . For we have that
[TABLE]
and , so and are a representation of the same edge with respect to, respectively, and .
Now since is a compatible representation, we have for any that if and only if . We have left to show that if the vector is nonzero, it is a representation with respect to of the edge . This follows again directly from the fact that is a compatible representation with respect to : by Proposition 17, has the same rank support as , which is the edge . Finally, we note that .
We conclude that is a compatible set of representations with respect to . ∎
We have seen so far that if given a compatible representation, we can find a basis for the edges. But this is not a very constructive definition: how do we find a compatible representation? This question is answered in the next theorem.
Theorem 24**.**
Consider edges through the same vertex . Let be the subspace spanned by all vertices on these edges. Let be a fixed full-weight vector in . By Lemma 13, we can assume there exist in a a codimension-one space of not containing such that these edges can be written as . Let . Then is a compatible representation with respect to for the edges .
Proof.
First of all, note that cannot be zero. Since the entries of are elements of that are linearly independent over , the dot product of with any nonzero vector in will be nonzero. Combining this with the fact that and are linearly independent over hence over , we find that is nonzero.
We will prove that is indeed a representation for , that is, and . The latter is straightforward:
[TABLE]
Now for any vector in , we have that its rank support is equal to its span. Therefore, . Then, by our favourite lemma about rank support, we have that
[TABLE]
To prove equality, we show that the left hand side has dimension 2. It is clearly at most , and it is not [math] since , so it suffices to prove the dimension is not . A vector can only have one-dimensional rank support if it is a -multiple of a vector in .
Suppose, towards a contradiction, that there is an element such that . This can happen in two cases: either both and are in or there are components in in both and that turn out to cancel.
In the first case, and means that and are -multiples of each other, hence linearly dependent over . But then also and are dependent over . This is impossible, because and are linearly independent over (see Remark 15).
On the other side, in order to have cancellation we would need to have it component by component and this would again make linearly dependent. We conclude that is indeed a representation for .
We now show that is a set of compatible representations. Take the vectors as above, we show that they satisfy the definition of compatible representations. The first two properties are clear. For the third one, we write
[TABLE]
Since and are linearly independent, by similar reasoning as before we see that iff . Moreover, the last right hand side is exactly what we get when substituting in the formula from the theorem. This implies is indeed a set of compatible representations. ∎
This theorem only gives us a compatible set of representations for (all) edges adjacent to the same vertex. By repeating the procedure for all vertices, one edge can get different representations. The next Lemma 25 shows that these representations will only differ up to a scalar of .
Lemma 25**.**
Let be an edge. Then taking and as a basis, or taking , and as a basis, gives representations w.r.t that differ only by a scalar in .
Proof.
Fixing and applying Theorem 24 to the basis gives the representation . Applying the same Theorem to the basis gives a representation that we can rewrite.
[TABLE]
Note that is the determinant of the coordinate change between and , hence it is nonzero. Since , , the Lemma holds true. ∎
From this results it follows that we can use Theorem 24 also to find a set of compatible representations for -ary (sub)graphs that are not connected. Now we are ready to define the incidence matrix of a -ary graph.
Definition 26**.**
The incidence matrix (with respect to a fixed full-weight vector ) of a -ary graph is a matrix with compatible representations (with respect to ) as columns.
Note that this definition depends on the choice of . We have, however, the following (see Lemma 21):
Corollary 27**.**
The incidence matrix is defined up to ordering of the columns and multiplication of a column by an element of .
4 From an incidence matrix to a -matroid
We will prove that picking a different incidence matrix for a -ary graph gives an isomorphic -matroid. First, we state and prove the following result. It is already implicit in [3, Lemma 21], but we prove it here for completeness.
Lemma 28**.**
Let be a -matroid over of rank , represented by the matrix over . Then applying row operations over to does not change . Applying column operations over to gives an isomorphic -matroid .
Proof.
Applying row operations over to means we multiply from the left with an invertible matrix over For any of dimension , we have that , where is a matrix with row space . Since , we see that and represent the same -matroid.
When we apply column operations to , it means we multiply from the right with an invertible matrix over . Again for any subspace we have that
[TABLE]
where is the isomorphism of defined by multiplication with . ∎
We apply this result to show that the choice of incidence matrix of a -ary graph changes the associated -matroid at most up to equivalence.
Theorem 29**.**
Associate to a -ary graph an incidence matrix . Let be the -matroid represented by . Let be another incidence matrix for the same -ary graph. Then and are isomorphic -matroids.
Proof.
The matrices and can differ in several ways. We will argue that all of them lead to isomorphic -matroids. By Lemma 28, for a representable -matroid, we can do row operations over without changing the -matroid. Column operations over will lead to an isomorphic -matroid.
Suppose and are defined with respect to the same full-rank vector . Then we have from Corollary 27 that the incidence matrix is defined up to multiplying columns by an element of . This can be viewed as a column operation over hence will yield an isomorphic -matroid. Next, we note that the order in which the representations of edges appear in the incidence matrix, leads to isomorphic -matroids, because re-ordering is a column operation over .
Now suppose and are defined with respect to different full-wight vectors and , respectively. This can be viewed as a change of basis of the field extension . Let be the full-rank matrix over such that . If is the matrix of multiplication by some scalar , so , Lemma 23 gives that the columns of are equal to the corresponding columns of , multiplied with . This can be seen as a row operation over , hence does not change the associated -matroid. If is some other matrix, we can replace by everywhere in Lemma 23, finding that . Hence and differ by left multiplication of a matrix over , thus over , and give the same -matroid. ∎
5 Concluding remarks
In this preprint we have given the definition of a -ary graph. We have shown that we can associate an incidence matrix, and hence a representation of a -matroid, to it. We have motivated why this definition of the incidence matrix is a -analogue of the incidence matrix in the classical case. Further motivation can be found in viewing graphs as -ary graphs over the field , but we will not go further into that here.
We realise that some of our proofs require the introduction of coordinates, and later proving that the results are independent of this choice of coordinates. This suggest that there is a “bigger picture” behind our algebraic approach, related to -systems and linear sets.
The representation of an edge of a -ary graph as a column vector, as defined in this paper, can be viewed as the -analogue of an incidence vector of a set. This idea might be extended to other -analogues, for example in defining the -analogue of a matroid polytope. However, this needs more research and insights in the geometric picture behind our approach.
A big open question that we do not yet know how to answer, is how to go from a -ary graph directly to a -matroid. This requires to study the -analogue of a set of edges. In the -analogue, this should be a space. We hope to determine if it is a circuit in the -matroid by looking at whether the corresponding edges, whatever that means, form a cycle in the -ary graph. Also here we feel more research is needed.
Acknowledgements
M. Ceria belongs to the “National Group for Algebraic and Geometric Structures, and their Applications” (GNSAGA - INdAM), which supported this work. This work was supported as well by the Italian Ministry of University and Research under the Programme “Department of Excellence” Legge 232/2016 (Grant No. CUP - D93C23000100001).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] G. N. Alfarano, M. Borello, A. Neri, and A. Ravagnani (2022) Linear cutting blocking sets and minimal codes in the rank metric . Journal of Combinatorial Theory, Series A 192 , pp. 105658 . Cited by: §1 .
- 2[2] M. Braun, D. Crnković, M. De Boeck, V. M. Crnković, and A. Švob (2024) q q -Analogs of strongly regular graphs . Linear algebra and its applications 693 , pp. 362–373 . Cited by: §1 , §2 .
- 3[3] R. Jurrius and R. Pellikaan (2018) Defining the q q -analogue of a matroid . Electronic Journal of Combinatorics 25 ( 3 ), pp. P 3.2 . Cited by: §4 .
- 4[4] R. Jurrius and R. Pellikaan (2017) On defining generalized rank weights . Advances in Mathematics of Communications 11 ( 1 ), pp. 225–235 . Cited by: §3 .
- 5[5] J. Oxley (2011) Matroid theory . Oxford University Press . Cited by: §1 .
- 6[6] T. H. Randrianarisoa (2020) A geometric approach to rank metric codes and a classification of constant weight codes . Designs, Codes and Cryptography 88 ( 7 ), pp. 1331–1348 . Cited by: §1 .
