Cube-magic labelings of grids
Rachel Wulan Nirmalasari Wijaya, Joe Ryan, Thomas Kalinowski

TL;DR
This paper proves that vertices and edges of multi-dimensional grid graphs can be labeled to ensure all subcubes have the same sum, establishing a supermagic property for these grids.
Contribution
It introduces a new labeling method for grid graphs that guarantees uniform sums over all subcubes, extending supermagic labelings to higher-dimensional grids.
Findings
Vertices and edges of grid graphs can be labeled to achieve supermagic sums.
All subgraphs isomorphic to a d-cube have the same total label sum.
The method applies to any dimension d ≥ 2.
Abstract
We show that the vertices and edges of a -dimensional grid graph () can be labeled with the integers from and , respectively, in such a way that for every subgraph isomorphic to a -cube the sum of all the labels of is the same. As a consequence, for every , every -dimensional grid graph is -supermagic where is the -cube.
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.
Taxonomy
TopicsGraph Labeling and Dimension Problems
Cube-magic labelings of grids
Rachel Wulan Nirmalasari Wijaya
University of Newcastle, Australia
Joe Ryan
University of Newcastle, Australia
Thomas Kalinowski
University of Newcastle, Australia
Abstract
We show that the vertices and edges of a -dimensional grid graph () can be labeled with the integers from and , respectively, in such a way that for every subgraph isomorphic to a -cube the sum of all the labels of is the same. As a consequence, for every , every -dimensional grid graph is -supermagic where is the -cube.
1 Introduction
The graphs considered in this paper are finite, undirected and simple. For a graph , we denote its vertex set by and its edge set by . A graph labeling, as introduced in [8], is an assignment of integers to the vertices or edges, or both, subject to certain conditions. Over the years, a large variety of different types of graph labelings have been studied, see [2] for an extensive survey.
For a graph , we say that a graph admits an -covering if every edge of belongs to at least one subgraph of which is isomorphic to . A graph which admits an -covering is called -magic if there exists a bijection and a constant , which we call the -magic sum of , such that
[TABLE]
for every subgraph with . If in addition then we say that the graph is -supermagic. The case where is a single edge was studied in [1], and the general concept for arbitrary graphs was introduced in [3]. Since then -magic and -supermagic labelings have been studied for a variety of graphs ([4, 5, 6, 7, 9]).
In this paper we show that for an integer , a -dimensional grid graph is -supermagic where denotes the -cube. For , the -cube is the same as a 4-cycle and our result is a consequence of Theorem 1 in [4] which gives sufficient conditions for the cartesian product of a graph and a path to be -supermagic.
The structure of the paper is as follows. In Section 2 we fix some notation and state our main result. Section 3 contains the proof which is by induction on the dimension , where the base case is contained in Section 3.1 and the induction step in Section 3.2.
2 Notation and main result
For integers we denote the sets and by and , respectively. For integers and , let denote the -grid graph, i.e., the cartesian product of paths of lengths ,…, . In other words, the vertex set of is and edge set
[TABLE]
The graph is called the -cube and will be denoted by .
To simplify the presentation of our proof we will label the vertices and the edges separately and then combine the labelings to obtain the -supermagic labeling. A vertex labeling for a graph is called -magic if there exists a constant , called the -magic sum of such that
[TABLE]
for every subgraph with . Similarly, an edge labeling for a graph is called -magic if there exists a constant , called the -magic sum of such that
[TABLE]
for every subgraph with . An -magic vertex labeling and an -magic edge labeling with -magic sums and can be combined to obtain an -supermagic labeling with -supermagic sum by setting for all and for all .
Theorem 1**.**
Let and be positive integers, and let . Then admits a -magic vertex labeling and a -magic edge labeling .
Based on the observation about combining -magic vertex and edge labelings we obtain the following corollary.
Corollary 1**.**
Let and be positive integers. Then is -supermagic.
3 Proof of the main result
We proceed by induction on . In Section 3.1 we treat the base case , and present explicit vertex and edge labelings for grid graphs . In Section 3.2 we assume , and we describe how labelings and for can be constructed from the labelings and for .
3.1 The base case
In order to describe the labeling in a compact way we use to denote the indicator function for a statement , i.e.,
[TABLE]
We define a vertex labeling by
[TABLE]
and an edge labeling by
[TABLE]
Example 1**.**
The construction is illustrated in Figure 1 for the graph .
Lemma 1**.**
The function defined by (1) is a -magic vertex labeling for with -magic sum
[TABLE]
Proof.
For every we have
[TABLE]
Lemma 2**.**
The function defined by (2) and (3) is a -magic edge labeling for with -magic sum .
Proof.
For every , we have
[TABLE]
Combining these two labelings as described in Section 2 we obtain a -supermagic labeling with -supermagic sum
[TABLE]
3.2 The induction step
We now assume . By induction, there exist -magic labelings and with -magic sums and for . We define by
[TABLE]
Example 2**.**
The vertex labeling (4) is illustrated in Figure 2 for the graph where is the vertex labeling for presented in Example 1.
Lemma 3**.**
The function defined by (4) a -magic vertex labeling with -magic sum
[TABLE]
Before proving the lemma we illustrate the basic idea using the -subgraph of shown in Figure 3.
This subgraph corresponds to the square labeled 12–7–8–5 in Figure 1, and by (4) the vertex labels for the top and the bottom square of the cube in Figure 3 are
[TABLE]
and therefore the sum of the vertex labels is , where is the magic sum of the vertex labeling in Figure 1.
Proof of Lemma 3.
Fix and . Let be the subgraph of induced by
[TABLE]
Using the fact that exactly half of the vertices of have even coordinate sum, we obtain from (4),
[TABLE]
A subgraph of is isomorphic to if and only if its vertex set is
[TABLE]
for some . Using (5), this implies
[TABLE]
We define an edge labeling for as follows. Let and . For an edge e=\{\mbox{\boldmathx},\mbox{\boldmathy}\} with , we set
[TABLE]
For the remaining edges we distinguish two cases.
Case 1.
is odd. For an edge e=\{\mbox{\boldmathx},\mbox{\boldmathy}\} with , , we set
[TABLE]
Case 2.
is even. For an edge e=\{\mbox{\boldmathx},\mbox{\boldmathy}\} with , , we set
[TABLE]
For an edge e=\{\mbox{\boldmathx},\mbox{\boldmathy}\} with , we set
[TABLE]
Example 3**.**
The edge labeling given by (6) to (9) is illustrated in Figure 4 for the graph . The underlying labelings for and for are the labelings from Example 1.
Lemma 4**.**
The function defined by (6) to (9) is a -magic edge labeling with -magic sum
[TABLE]
Again, we illustrate the basic idea before going into the formal proof. Figure 6 shows the edge labels for the same subgraph of as in the illustration for Lemma 3 (see Figure 3).
The top and bottom squares of the cube in Figure 6 correspond to the square labeled 12–7–8–5 in Figure 6. In this example we have and , and according to (6), the labels of the vertical edges are
[TABLE]
so the sum of the labels of the vertical edges is , where is the vertex-magic sum in Figure 6. According to (7), the labels of the edges in the top and the bottom square are
[TABLE]
and therefore the sum of these edge labels is , where is the edge-magic sum in Figure 6. Adding all edge labels we obtain as claimed in the lemma.
Proof of Lemma 4.
Fix a subgraph with . Its vertex set is
[TABLE]
for some . We partition the vertex set as and the edge set as where
[TABLE]
Note that and . Using the fact that is even for exactly half of the edges \{\mbox{\boldmathy},\,\mbox{\boldmathz}\}\in E_{2}(H) and that the subgraph of induced by is isomorphic to , we obtain from (6),
[TABLE]
For the edges in we use the fact that each of the sets induces a subgraph isomorphic to . In addition, if is odd then exactly half of the indices are even, and if is even then
- •
exactly half of the indices are even, and
- •
for exactly half of the vertices the sum is even.
In both cases we conclude that for exactly half of the edges in the term added to in (6) to (9) is , and for the other half it is . This implies
[TABLE]
Combining (10) and (11), the function is a -magic labeling with -magic sum
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] H. Enomoto, A. S. Lladó, T. Nakamigawa, and G. Ringel. Super edge-magic graphs. SUT J. Math , 34(2):105–109, 1998.
- 2[2] J. A. Gallian. A dynamic survey of graph labeling. The electronic journal of combinatorics , DS 6(18th edition):1–389, 2015.
- 3[3] A. Gutiérrez and A. Lladó. Magic coverings. Journal of Combinatorial Mathematics and Combinatorial Computing , 55:43–56, 2005.
- 4[4] T. Kojima. On -supermagic labelings of the cartesian product of paths and graphs. Discrete Mathematics , 313(2):164–173, 2013.
- 5[5] A. Lladó and J. Moragas. Cycle-magic graphs. Discrete Mathematics , 307(23):2925–2933, 2007.
- 6[6] T. Maryati, E. Baskoro, and A. Salman. P h subscript 𝑃 ℎ {P}_{h} -supermagic labelings of some trees. Journal of Combinatorial Mathematics and Combinatorial Computing , 65:197–204, 2008.
- 7[7] A. Ngurah, A. Salman, and L. Susilowati. H 𝐻 H -supermagic labelings of graphs. Discrete Mathematics , 310(8):1293–1300, 2010.
- 8[8] A. Rosa. On certain valuations of the vertices of a graph. In Theory of Graphs (Internat. Symposium), Rome , pages 349–355, 1966.
