Total Labelings of Graphs with Prescribed Weights

Martin Bača1, Mirka Miller2,3,4, Oudone Phanalasy2,5, Joe Ryan6, Andrea Semaničová-Feňovčíková1, Anita A. Sillasen7
1Department of Applied Mathematics and Informatics, Technical University, Košice, Slovakia.
2School of Mathematical and Physical Sciences, The University of Newcastle, Australia.
3Department of Mathematics, University of West Bohemia, Pilsen, Czech Republic.
4Department of Informatics, King’s College London, UK.
5Department of Mathematics, National University of Laos, Vientiane, Laos.
6School of Electrical Engineering and Computer Science, The University of Newcastle, Australia.
7Department of Mathematical Sciences, Aalborg University, Aalborg, Denmark.

Abstract

The total labeling of a graph G=(V,E) is a bijection from the union of the vertex set and the edge set of G to the set {1,2,,|V(G)|+|E(G)|}. The edge-weight of an edge under a total labeling is the sum of the label of the edge and the labels of the end vertices of that edge. The vertex-weight of a vertex under a total labeling is the sum of the label of the vertex and the labels of all the edges incident with that vertex. A total labeling is called edge-magic or vertex-magic when all the edge-weights or all the vertex-weights are the same, respectively. When all the edge-weights or all the vertex-weights are different then a total labeling is called edge-antimagic or vertex-antimagic total, respectively.

In this paper we deal with the problem of finding a~total labeling of some classes of graphs that is simultaneously vertex-magic and edge-antimagic or simultaneously vertex-antimagic and edge-magic, respectively.
We show several results for stars, paths and cycles.

Keywords: Edge-magic total labeling, Vertex-magic total labeling, Edge-anti\-ma\-gic total labeling, Vertex-antimagic total labeling

1. Introduction

In this paper we consider finite, simple and undirected graphs. For a graph G=(V,E) we denote the set of vertices V(G) and the set of edges E(G).

A labeling of a graph G is any mapping that sends certain set of graph elements to a certain set of positive integers or colors. If the domain is the vertex-set, or the edge-set, respectively, the labeling is called a vertex labeling, or an edge labeling, respectively. If the domain is V(G)E(G) then the labeling is called a total labeling. More precisely, for a  graph G a bijection f:V(G)E(G){1,2,,|V(G)|+|E(G)|} is a total labeling of G.

Under the labeling f, the associated edge-weight of an edge uv, uvE(G), is defined by wtf(uv)=f(u)+f(uv)+f(v).

The associated vertex-weight of a vertex v, vV(G), is defined by wtf(v)=f(v)+uN(v)f(uv), where N(v) is the set of the neighbors of v.

A labeling f is a called edge-magic total (vertex-magic total) if the edge-weights (vertex-weights) are all the same. If the edge-weights (vertex-weights) are pairwise distinct then the total labeling is called edge-antimagic total (vertex-antimagic total). A graph that admits edge-magic total (edge-antimagic total) labeling or vertex-magic total (vertex-antimagic total) labeling is called edge-magic total (edge-antimagic total) graph or vertex-magic total (vertex-antimagic total) graph, respectively.

In this paper we will use acronyms EMT, VMT, EAT and VAT instead of edge-magic total, vertex-magic total, edge-antimagic total and vertex-antimagic total, respectively.

The subject of EMT graph has its origins in the work of Kotzig and Rosa [1] and VMT graphs were introduced by MacDougall, Miller, Slamin and Wallis in [2], see also [3]. The notion of EAT labeling was introduced by Simanjuntak, Bertault and Miller in [4] as a natural extension of magic valuation defined by Kotzig and Rosa in [1], and VAT labelings of graphs were introduced in [5], see also [6].

There are known characterizations of all EAT and VAT graphs. In [7] Miller, Phanalasy and Ryan proved

Proposition 1 ([7]). All graphs are (super) EAT.

Proposition 2 ([7]). All graphs are (super) VAT.

Since all graphs are EAT and VAT, naturally we can ask whether there exist graphs possessing a labeling that is simultaneously EAT and VAT. Such a labeling is called a totally antimagic total labeling and a graph that admits such a labeling a totally antimagic total graph, for short TAT graph. If, moreover, the vertices are labelled with the smallest possible labels then, as is customary, the labeling is referred to as super. The concept of TAT labeling was given by Bača, Miller, Phanalasy, Ryan, Semaničová-Feňovčíková and Sillasen [8]. In [8] it was proved that complete graphs, paths, cycles, stars, double-stars and wheels are TAT.

The definition of TAT labeling is a natural extension of the concept of totally magic labeling defined by Exoo, Ling, McSorley, Phillips and Wallis in [9]. They showed that such graphs appear to be rare. They proved that the only connected totally magic graph containing a vertex of degree 1 is P3, the only totally magic trees are K1 and P3, the only totally magic cycle is C3, the only totally magic complete graphs are K1 and K3, and the only totally magic complete bipartite graph is K1,2.

In [8] Bača, Miller, Phanalasy, Ryan, Semaničová-Feňovčíková and Sillasen proposed the following open problems.

Problem 1. Find total labeling of some classes of graphs that is simultaneously vertex-magic and edge-antimagic.

Problem 2. Find total labeling of some classes of graphs that is simultaneously vertex-antimagic and edge-magic.

In this paper we will deal with these problems and we will try to find the answers for some classes of graphs, especially for stars, paths and cycles.

2. Stars, Paths and Cycles

As all graphs are (super) EAT, see Proposition 1, and all graphs are (super) VAT, see Proposition 2, we trivially get, that a graph that is simultaneously VMT and EAT, must be VMT. Analogously, the necessary condition for a graph to be simultaneously VAT and EMT is that the graph must be EMT.

The star Sn is a graph isomorphic to the complete bipartite graph K1,n. In [9] it was proved that the star Sn is totally magic if and only if n=2. Bača, Miller, Phanalasy, Ryan, Semaničová-Feňovčíková and Sillasen in [8] proved that the star Sn is TAT for n1.

Kotzig and Rosa [1] proved that the complete bipartite graph Km,n is EMT for all integers m, n. Immediately from this result we get that all stars Sn are EMT. We now prove the following result.

Theorem 1. The star Sn is simultaneously EMT and VAT if and only if n=1.

Proof. We denote the vertices of Sn by the symbols v, vi, i=1,2,,n, such that E(Sn)={vv1,vv2,,vvn}.

Let f be a total labeling of Sn that is simultaneously EMT and VAT. It means that the edges vv1 and vvi, i=2,3,,n, have the same weights, i.e., wtf(vv1)=wtf(vvi)f(v)+f(vv1)+f(v1)=f(v)+f(vvi)+f(vi)f(v1)+f(vv1)=f(vvi)+f(vi)wtf(v1)=wtf(vi). The labeling f must be also a VAT labeling of Sn, thus the vertex-weights must be pairwise different. But this is possible if and only if n=1◻

In [2] it was proved that the complete bipartite graph Km,n is VMT if and only if |mn|1. Note that S1 is isomorphic to a path on 2 vertices and S2 is isomorphic to a path on 3 vertices. In [2] MacDougall, Miller, Slamin and Wallis proved that the path on n vertices is VMT for n>2. According to these facts the star Sn is VMT if and only if n=2.

Theorem 2. No star Sn is simultaneously VMT and EAT.

Proof. We only need to show that the star S2 in not simultaneously VMT and EAT. It is easy to check that there are only two non-isomorphic VMT labelings of P3, both are illustrated in Figure 1. But both of these labelings are simultaneously EMT.

 ◻

MacDougall, Miller, Slamin and Wallis [2] proved that the path Pn on n vertices and a cycle Cn are VMT for n3. In [9] it was proved that Pn is totally magic if and only if n=3. Bača, Miller, Phanalasy, Ryan, Semaničová-Feňovčíková and Sillasen in [8] proved that Pn is TAT for every n2.

Theorem 3. The path Pn is simultaneously EMT and VAT if and only if n3.

Proof. We denote the vertices of Pn by the symbols vi, i=1,2,,n, such that E(Pn)={v1v2,v2v3,,vn1vn}.

First we prove that the path P3 is not simultaneously EMT and VAT. We prove it by contradiction. Let us consider that g is a labeling of P3 that is simultaneously EMT and VAT. It means that the edges v1v2 and v2v3 have the same weights, i.e., wtg(v1v2)=wtg(v2v3)g(v1)+g(v1v2)+g(v2)=g(v2)+g(v2v3)+g(v3)g(v1)+g(v1v2)=g(v2v3)+g(v3)wtg(v1)=wtg(v3). But this is a contradiction to the fact that g is a VAT labeling of P3.

For n3, let us consider the labeling f, f:V(Pn)E(Pn){1,2,,2n1} defined in the following way f(vi)={i2,i0(mod2),in,n2+i+12,i1(mod2),in,f(vivi+1)=2ni,i=1,2,3,,n1.

For the edge-weights we have the following.
If i0(mod2), 2in1 then wtf(vivi+1)=f(vi)+f(vivi+1)+f(vi+1)=(i2)+(2ni)+(n2+(i+1)+12)=2n+n2+1. If i1(mod2), 1in1 then wtf(vivi+1)=f(vi)+f(vivi+1)+f(vi+1)=(n2+i+12)+(2ni)+(i+12)=2n+n2+1. Thus the labeling f is EMT.

Let us consider the vertex-weights under the labeling f. wtf(v1)=f(v1)+f(v1v2)=(n2+1+12)+(2n1)=2n+n2,wtf(vn)=f(vn)+f(vn1vn)={n2+(2n(n1))=3n2+1,aaaaaaaaaaaaaaaa for n0(mod2),(n2+n+12)+(2n(n1))=2n+1,aaaaaaaaaaaaaaaa for n1(mod2),wtf(vi)=f(vi1vi)+f(vi)+f(vivi+1)={(2n(i1))+i2+(2ni)=4n+13i2,aaaaaaaaaaaaaaaa for i0(mod2), 2i<n(2n(i1))+(n2+i+12)+(2ni)(2n(i1))+i2+(2ni)=4n+n23(i1)2,aaaaaaaaaaaaaaaa for i1(mod2), 3i<n. It is easy to see that the following is true:

  1. For n3, we have wtf(vn)<wtf(v1).

  2. For every positive integer i, 2in1 it holds that wtf(v1)<wtf(vi).

  3. To prove that f is a VAT labeling of Pn we need to show that for all positive integers i, j, 1<i,j<n we have (1)wtf(vi)wtf(vj).

    If ij(mod2) then the proof is trivial, as in this case the vertex-weights form an arithmetic sequence with difference 3.

    If ij(mod2) then the inequality (1) is true for n21(mod3).

Thus the labeling f is a simultaneously EMT and VAT labeling of Pn for n3 and n2(mod6) and n3(mod6).

For n2(mod6) let us consider the labeling h of Pn defined by h(vi)={n+i2,i0(mod2),in,i+12,i1(mod2),in1,h(vivi+1)=2ni,i=1,2,3,,n1.

For the edge-weights under the labeling h we get:
If i0(mod2), 2in2 then wth(vivi+1)=h(vi)+h(vivi+1)+h(vi+1)=(n+i2)+(2ni)+((i+1)+12)=5n2+1. If i1(mod2), 1in1 then wth(vivi+1)=h(vi)+h(vivi+1)+h(vi+1)=(i+12)+(2ni)+(n+(i+1)2)=5n2+1. Thus the labeling h is EMT.

For the vertex-weights under the labeling h we have: wth(v1)=h(v1)+h(v1v2)=(1+12)+(2n1)=2n,wth(vn)=h(vn)+h(vn1vn)=(n+n2)+(2n(n1))=2n+1,wth(vi)=h(vi1vi)+h(vi)+h(vivi+1)={(2n(i1))+n+i2+(2ni)=9n2+13i2,aaaaaaaaaaaaaaaa for i0(mod2), 2in2,(2n(i1))+(i+12)+(2ni)=4n3(i1)2,aaaaaaaaaaaaaaaa for i1(mod2), 3in1.

Then we get:

  1. For every positive integer i, 2in1 it holds that wth(v1)=2n<2n+1=wth(vn)<wth(vi).

  2. To prove that h is a VAT labeling of Pn we need to show that for all positive integers i, j, 1<i,j<n we have (2)wth(vi)wth(vj).

    If ij(mod2) then the proof is again trivial, as the vertex-weights form an arithmetic sequence with difference 3.

    If ij(mod2) then the inequality (2) is true for n4(mod6). However, this condition is satisfied as we considered the case when n2(mod6).

It means that for n2(mod6) the labeling h is a simultaneously EMT and VAT labeling of Pn.

For n3(mod6), n9, let us consider the labeling t of Pn defined in the following way: t(vi)={3n12+i2,i0(mod2),in1,i+12,i1(mod2),in,t(vivi+1)=3n+12i,i=1,2,3,,n1.

Analogously as in the previous cases we can prove that t is simultaneously EMT and VAT labeling of Pn for n3(mod6)◻

In Figures 2, 3 and 4 we illustrate simultaneously EMT and VAT labelings of P7, P8 and P9, respectively.

Theorem 4. For n=4 or n5, n1(mod6) or n5(mod6) the path Pn is simultaneously VMT and EAT.

Proof. Figure 5 shows a labeling of P4 that is simultaneously VMT and EAT.

Let n be a positive integer, n5, n1(mod6) or n5(mod6). Let us consider the labeling f, f:V(Pn)E(Pn){1,2,,2n1} defined in the following way: f(vi)={2n1,i=n,2n1i,i=1,2,,n1,f(vivi+1)={i2,i0(mod2),in1,n+i2,i1(mod2),in2.

For the vertex-weights under the labeling f we get: wtf(v1)=f(v1)+f(v1v2)=(n+12)+(2n2)=5n32,wtf(vn)=f(vn)+f(vn1vn)=(2n1)+(n12)=5n32,wtf(vi)=f(vi1vi)+f(vi)+f(vivi+1)={(n+(i1)2)+(2n1i)+(i2)=5n32,aaaaaaaaaaaaaaaa for i0(mod2), 2in1,(i12)+(2n1i)+(n+i2)=5n32,aaaaaaaaaaaaaaaa for i1(mod2), 3in2. Thus for i=1,2,,n we have wtf(vi)=5n32. This means that the labeling f is VMT.

Let us consider the edge-weights under the labeling f. If i0(mod2), 2in3 then wtf(vivi+1)=f(vi)+f(vivi+1)+f(vi+1)=(2n1i)+(i2)+(2n1(i+1))=4n33i2. Thus the set of edge-weights for i even is {wtf(v2v3),wtf(v4v5),,wtf(vn3vn2)}={4n6,4n9,,5n+32}. The edge-weights form an arithmetic sequence with a difference 3. For n1(mod6) the numbers in the set of edge-weights are congruent to 1 modulo 3. For n5(mod6) the numbers that form the set of edge-weights are congruent to 2 modulo 3.

If i1(mod2), 1in2 then wtf(vivi+1)=f(vi)+f(vivi+1)+f(vi+1)=(2n1i)+(n+i2)+(2n1(i+1))=9n3i23. The set of edge-weights for i odd form an arithmetic sequence with difference 3, more precisely {wtf(v1v2),wtf(v3v4),,wtf(vn2vn1)}={9n92,9n923,,3n}. Moreover, in this case the edge-weights are congruent to 0 modulo 3.

And wtf(vn1vn)=f(vn1)+f(vn1vn)+f(vn)=(2n1(n1))+(n12)+(2n1)=7n32{2(mod3), for n1(mod6),1(mod3), for n5(mod6).

According to the previous discussions for n5, n1(mod6) or n5(mod6) edge-weights are pairwise different.

Thus the labeling f is a simultaneously VMT and EAT labeling of Pn for n5, n1(mod6) or n5(mod6)◻

Note that P2 and P3 are not simultaneously VMT and EAT. For 6n1,5(mod6) we are not able to find the corresponding total labeling that is simultaneously VMT and EAT. However we assume that such a labeling does exist. The supporting argument for this assumption is the fact that every VMT labeling of path Pn is derived from VMT labeling of cycle Cn, see [2]. And for cycles there exist many non-isomorphic VMT labelings, see Table 1 [2].

Table 1: Number of Non-Isomorphic VMT Labelings of Cycle Cn [2]
n 3 4 5 6 7 8 9 10
# 4 6 6 20 118 282 1540 7092

In [9] it was proved that the cycle Cn is totally magic if and only if n=3. Bača, Miller, Phanalasy, Ryan, Semaničová-Feňovčíková and Sillasen in [8] proved that all cycles Cn are TAT.

We now prove the following result.

Theorem 5. For n=4 or n5, n1(mod6) or n5(mod6) the cycle Cn is simultaneously VMT and EAT.

Proof. As we already mentioned, every VMT labeling of path Pn is derived from VMT labeling of cycle Cn, see [2]. The idea is to modify the VMT labeling of cycle Cn by subtracting number 1 from every vertex label and every edge label of a VMT labeling of the cycle Cn and then to delete the edge with label 0.

Thus, according to the proof of Theorem 4, let us consider the labeling f, f:V(Cn)E(Cn){1,2,,2n} defined in the following way: f(vi)={2n,i=n,2ni,i=1,2,,n1,f(vivi+1)={i2+1,i0(mod2),in1,n+i2+1,i1(mod2),in2,f(v1vn)=1.

Analogously as in the proof of Theorem 4 we prove that the labeling f is a simultaneously VMT and EAT labeling of Cn for n5, n1(mod6) or n5(mod6)◻

According to Theorem 5 and the fact that for cycles (and only for cycles) a VMT labeling is equivalent to EMT labeling, see [3], we have:

Theorem 6. For n=4 or n5, n1(mod6) or n5(mod6) the cycle Cn is simultaneously EMT and VAT.

Note that for the cycle C3 there is neither a simultaneously VMT and EAT labeling nor a simultaneously EMT and VAT labeling. The cases when 6n1,5(mod6) are still unsolved.

3. Conclusion

In this paper we have dealt with the problem of finding a total labeling of some classes of graphs that is simultaneously vertex-magic and edge-antimagic or simultaneously vertex-antimagic and edge-magic, respectively. We showed the existence of such labelings for some classes of graphs, such as stars, paths and cycles.

For n=4 or n5, n1(mod6) or n5(mod6) we proved that the cycle Cn is simultaneously EMT and VAT. For other cases we propose the following open problem.

Problem 3. For the cycle Cn, 6n1,5(mod6), determine if there is a simultaneously EMT labeling and VAT labeling.

For further investigation we state the following open problem.

Problem 4. Find other classes of graphs that are simultaneously VMT and EAT or simultaneously VAT and EMT, respectively.

Acknowledgment

The work was supported by the Slovak Research and Development Agency under the contract No. APVV-19-0153.

References:

  1. Kotzig, A. and Rosa, A., 1970. Magic valuations of finite graphs. Canadian Mathematical Bulletin, 13(4), pp.451-461.

  2. MacDougall, J.A., Miller, M., Slamin and Wallis, W.D., 2002. Vertex-magic total labelings of graphs. Utilitas Mathematica, 61, pp.3-21.

  3. Wallis, W. D., 2001. Magic Graphs, Birkhäuser, Boston – Basel – Berlin.

  4. Simanjuntak, R., Bertault, F. and Miller, M., 2000. Two new (a,d)-antimagic graph labelings. In Proc. of Eleventh Australasian Workshop on Combinatorial Algorithms (Vol. 11, pp. 179-189).

  5. Bača, M., MacDougall, J., Bertault, F., Miller, M., Simanjuntak, R. and Slamin, 2003. Vertex-antimagic total labelings of graphs. Discussiones Mathematicae Graph Theory, 23(1), pp.67-83.

  6. Bača, M. and Miller, M., 2008. Super Edge-Antimagic Graphs: A Wealth of Problems and Some Solutions. Universal-Publishers.

  7. Miller, M., Phanalasy, O. and Ryan, J., 2011. All graphs have antimagic total labelings. Electronic Notes in Discrete Mathematics, 38, pp.645-650.

  8. Bača, M., Miller, M., Phanalasy, O., Ryan, J., Semaničová-Feňovčíková, A. and Sillasen, A.A., 2015. Totally antimagic total graphs. The Australasian Journal of Combinatorics, 61, pp.42-56.

  9. Exoo, G., Ling, A.C., McSorley, J.P., Phillips, N.C. and Wallis, W.D., 2002. Totally magic graphs. Discrete Mathematics, 254(1-3), pp.103-113.