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,\dots,|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.
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) \cup E(G)\) then the labeling is called a total labeling. More precisely, for a graph \(G\) a bijection \(f: V(G)\cup E(G) \to \left\{1, 2,\dots, |V(G)|+|E(G)|\right\}\) is a total labeling of \(G\).
Under the labeling \(f\), the associated edge-weight of an edge \(uv\), \(uv\in E(G)\), is defined by \[\begin{aligned} wt_f(uv)=f(u)+f(uv)+f(v). \end{aligned}\]
The associated vertex-weight of a vertex \(v\), \(v\in V(G)\), is defined by \[\begin{aligned} wt_f(v)= f(v)+\sum_{u\in N(v)}f(uv), \end{aligned}\] 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 \(P_3\), the only totally magic trees are \(K_1\) and \(P_3\), the only totally magic cycle is \(C_3\), the only totally magic complete graphs are \(K_1\) and \(K_3\), and the only totally magic complete bipartite graph is \(K_{1,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.
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 \(S_n\) is a graph isomorphic to the complete bipartite graph \(K_{1,n}\). In [9] it was proved that the star \(S_n\) 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 \(S_n\) is TAT for \(n \ge 1\).
Kotzig and Rosa [1] proved that the complete bipartite graph \(K_{m,n}\) is EMT for all integers \(m\), \(n\). Immediately from this result we get that all stars \(S_n\) are EMT. We now prove the following result.
Theorem 1. The star \(S_n\) is simultaneously EMT and VAT if and only if \(n=1\).
Proof. We denote the vertices of \(S_n\) by the symbols \(v\), \(v_i\), \(i=1, 2, \dots, n\), such that \[E(S_n) =\{ vv_1, vv_2, \dots, vv_{n}\}.\]
Let \(f\) be a total labeling of \(S_n\) that is simultaneously EMT and VAT. It means that the edges \(vv_1\) and \(vv_i\), \(i=2,3, \dots, n\), have the same weights, i.e., \[\begin{aligned} wt_f(vv_1)=&wt_f(vv_i)\\ f(v)+f(vv_1)+f(v_1)=&f(v)+f(vv_i)+f(v_i)\\ f(v_1)+f(vv_1) =& f(vv_i)+f(v_i)\\ wt_f(v_1)=&wt_f(v_i). \end{aligned}\] The labeling \(f\) must be also a VAT labeling of \(S_n\), 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 \(K_{m,n}\) is VMT if and only if \(|m-n|\le 1\). Note that \(S_1\) is isomorphic to a path on 2 vertices and \(S_2\) 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 \(S_n\) is VMT if and only if \(n=2\).
Theorem 2. No star \(S_n\) is simultaneously VMT and EAT.
Proof. We only need to show that the star \(S_2\) in not simultaneously VMT and EAT. It is easy to check that there are only two non-isomorphic VMT labelings of \(P_3\), both are illustrated in Figure 1. But both of these labelings are simultaneously EMT.
◻MacDougall, Miller, Slamin and Wallis [2] proved that the path \(P_n\) on \(n\) vertices and a cycle \(C_n\) are VMT for \(n\ge 3\). In [9] it was proved that \(P_n\) 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 \(P_n\) is TAT for every \(n\ge 2\).
Theorem 3. The path \(P_n\) is simultaneously EMT and VAT if and only if \(n\ne 3\).
Proof. We denote the vertices of \(P_n\) by the symbols \(v_i\), \(i=1, 2, \dots, n\), such that \[E(P_n) =\{ v_1v_2, v_2v_3, \dots, v_{n-1}v_{n}\}.\]
First we prove that the path \(P_3\) is not simultaneously EMT and VAT. We prove it by contradiction. Let us consider that \(g\) is a labeling of \(P_3\) that is simultaneously EMT and VAT. It means that the edges \(v_1v_2\) and \(v_2v_3\) have the same weights, i.e., \[\begin{aligned} wt_g(v_1v_2)=&wt_g(v_2v_3)\\ g(v_1)+g(v_1v_2)+g(v_2)=&g(v_2)+g(v_2v_3)+g(v_3)\\ g(v_1)+g(v_1v_2) =& g(v_2v_3)+g(v_3)\\ wt_g(v_1)=&wt_g(v_3). \end{aligned}\] But this is a contradiction to the fact that \(g\) is a VAT labeling of \(P_3\).
For \(n\ne 3\), let us consider the labeling \(f\), \(f: V(P_n)\cup E(P_n)\to \{ 1, 2,\dots, 2n-1\}\) defined in the following way \[\begin{aligned} f(v_i)&=\begin{cases} \frac{i}{2}, &i\equiv 0\pmod 2,\quad i\le n,\\ \left\lfloor \frac{n}{2} \right\rfloor+\frac{i+1}{2}, &i\equiv 1\pmod 2,\quad i\le n, \end{cases}\\ f(v_iv_{i+1})&= 2n-i, \qquad i=1, 2, 3, \dots, n-1. \end{aligned}\]
For the edge-weights we have the following.
If \(i\equiv 0\pmod 2\), \(2\le i\le n-1\) then \[\begin{aligned}
wt_f(v_iv_{i+1})=& f(v_i)+f(v_iv_{i+1})+f(v_{i+1})\\
=& \left(\tfrac{i}{2} \right) + \left( 2n-i\right) +\left(
\left\lfloor \tfrac{n}{2} \right\rfloor+\tfrac{(i+1)+1}{2} \right)=
2n+\left\lfloor \tfrac{n}{2} \right\rfloor+1.
\end{aligned}\] If \(i\equiv 1\pmod
2\), \(1\le i\le n-1\) then
\[\begin{aligned}
wt_f(v_iv_{i+1})=& f(v_i)+f(v_iv_{i+1})+f(v_{i+1})\\
= &\left( \left\lfloor
\tfrac{n}{2} \right\rfloor+\tfrac{i+1}{2} \right) + \left(
2n-i\right)+\left(\tfrac{i+1}{2} \right) = 2n+\left\lfloor
\tfrac{n}{2} \right\rfloor+1.
\end{aligned}\] Thus the labeling \(f\) is EMT.
Let us consider the vertex-weights under the labeling \(f\). \[\begin{aligned} wt_f(v_1)=& f(v_1)+f(v_1v_2)=\left(\left\lfloor \tfrac{n}{2} \right\rfloor+\tfrac{1+1}{2}\right)+(2n-1)=2n+\left\lfloor \tfrac{n}{2} \right\rfloor,\\ wt_f(v_n)=& f(v_{n})+f(v_{n-1}v_n)\\ =&\begin{cases} \frac{n}{2}+\left(2n-(n-1) \right) =\frac{3n}{2}+1,\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } n\equiv 0\pmod 2,\\ \left(\left\lfloor \frac{n}{2} \right\rfloor+\frac{n+1}{2}\right)+\left(2n-(n-1) \right)=2n+1,\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } n\equiv 1\pmod 2, \end{cases}\\ wt_f(v_i)=& f(v_{i-1}v_i)+f(v_{i})+f(v_{i}v_{i+1})\\ =&\begin{cases} \left(2n-(i-1)\right)+\frac{i}{2}+\left(2n-i \right)=4n+1-\frac{3i}{2},\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } i\equiv 0\pmod 2,\ 2\le i< n\\ \left(2n-(i-1)\right)+\left(\left\lfloor \frac{n}{2} \right\rfloor+\frac{i+1}{2}\right)+\left(2n-i \right)\\ \phantom{\left(2n-(i-1)\right)+\frac{i}{2}+\left(2n-i \right)}=4n+\left\lfloor \frac{n}{2} \right\rfloor-\frac{3(i-1)}{2},\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } i\equiv 1\pmod 2,\ 3\le i< n. \end{cases} \end{aligned}\] It is easy to see that the following is true:
For \(n\ne 3\), we have \(wt_f(v_n)<wt_f(v_1)\).
For every positive integer \(i\), \(2\le i\le n-1\) it holds that \[wt_f(v_1)<wt_f(v_i).\]
To prove that \(f\) is a VAT labeling of \(P_n\) we need to show that for all positive integers \(i\), \(j\), \(1< i,j< n\) we have \[ wt_f(v_i)\ne wt_f(v_j). \tag{1}\]
If \(i\equiv j \pmod 2\) then the proof is trivial, as in this case the vertex-weights form an arithmetic sequence with difference 3.
If \(i\not\equiv j \pmod 2\) then the inequality (1) is true for \(\left\lfloor \frac{n}{2} \right\rfloor\not\equiv 1 \pmod 3\).
Thus the labeling \(f\) is a simultaneously EMT and VAT labeling of \(P_n\) for \(n\ne 3\) and \(n\not\equiv 2\pmod 6\) and \(n\not\equiv 3\pmod 6\).
For \(n\equiv 2\pmod 6\) let us consider the labeling \(h\) of \(P_n\) defined by \[\begin{aligned} h(v_i)&=\begin{cases} \frac{n+i}{2}, &i\equiv 0\pmod 2,\quad i\le n,\\ \frac{i+1}{2}, &i\equiv 1\pmod 2,\quad i\le n-1, \end{cases}\\ h(v_iv_{i+1})&= 2n-i, \qquad i=1, 2, 3, \dots, n-1. \end{aligned}\]
For the edge-weights under the labeling \(h\) we get:
If \(i\equiv 0\pmod 2\), \(2\le i\le n-2\) then \[\begin{aligned}
wt_h(v_iv_{i+1})=& h(v_i)+h(v_iv_{i+1})+h(v_{i+1})\\
=& \left(\tfrac{n+i}{2} \right) + \left( 2n-i\right)
+\left(\tfrac{(i+1)+1}{2} \right)= \frac{5n}{2}+1.
\end{aligned}\] If \(i\equiv 1\pmod
2\), \(1\le i\le n-1\) then
\[\begin{aligned}
wt_h(v_iv_{i+1})=& h(v_i)+h(v_iv_{i+1})+h(v_{i+1})\\
= &\left(\tfrac{i+1}{2} \right) + \left( 2n-i\right)
+\left(\tfrac{n+(i+1)}{2} \right)= \frac{5n}{2}+1.
\end{aligned}\] Thus the labeling \(h\) is EMT.
For the vertex-weights under the labeling \(h\) we have: \[\begin{aligned} wt_h(v_1)=& h(v_1)+h(v_1v_2)=\left( \tfrac{1+1}{2} \right)+(2n-1)=2n,\\ wt_h(v_n)=& h(v_{n})+h(v_{n-1}v_n)=\left( \tfrac{n+n}{2} \right)+(2n-(n-1))=2n+1, \\ wt_h(v_i)=& h(v_{i-1}v_i)+h(v_{i})+h(v_{i}v_{i+1})\\ =&\begin{cases} \left(2n-(i-1)\right)+\frac{n+i}{2}+\left(2n-i \right)=\frac{9n}{2}+1 -\frac{3i}{2},\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } i\equiv 0\pmod 2,\ 2\le i\le n-2,\\ \left(2n-(i-1)\right)+\left(\frac{i+1}{2}\right)+\left(2n-i \right)=4n-\frac{3(i-1)}{2},\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } i\equiv 1\pmod 2,\ 3\le i\le n-1. \end{cases} \end{aligned}\]
Then we get:
For every positive integer \(i\), \(2\le i\le n-1\) it holds that \[wt_h(v_1)=2n<2n+1=wt_h(v_n)<wt_h(v_i).\]
To prove that \(h\) is a VAT labeling of \(P_n\) we need to show that for all positive integers \(i\), \(j\), \(1< i,j< n\) we have \[\begin{aligned} wt_h(v_i)\ne wt_h(v_j).\label{druha} \end{aligned}\tag{2}\]
If \(i\equiv j \pmod 2\) then the proof is again trivial, as the vertex-weights form an arithmetic sequence with difference 3.
If \(i\not\equiv j \pmod 2\) then the inequality (2) is true for \(n\not\equiv 4\pmod 6\). However, this condition is satisfied as we considered the case when \(n\equiv 2\pmod 6\).
It means that for \(n\equiv 2\pmod 6\) the labeling \(h\) is a simultaneously EMT and VAT labeling of \(P_n\).
For \(n\equiv 3\pmod 6\), \(n\ge 9\), let us consider the labeling \(t\) of \(P_n\) defined in the following way: \[\begin{aligned} t(v_i)&=\begin{cases} \frac{3n-1}{2}+\frac{i}{2}, &i\equiv 0\pmod 2,\quad i\le n-1,\\ \frac{i+1}{2}, &i\equiv 1\pmod 2,\quad i\le n, \end{cases}\\ t(v_iv_{i+1})&= \frac{3n+1}{2}-i, \qquad i=1, 2, 3, \dots, n-1. \end{aligned}\]
Analogously as in the previous cases we can prove that \(t\) is simultaneously EMT and VAT labeling of \(P_n\) for \(n\equiv 3\pmod 6\) . ◻
In Figures 2, 3 and 4 we illustrate simultaneously EMT and VAT labelings of \(P_7\), \(P_8\) and \(P_9\), respectively.
Theorem 4. For \(n=4\) or \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\) the path \(P_n\) is simultaneously VMT and EAT.
Proof. Figure 5 shows a labeling of \(P_4\) that is simultaneously VMT and EAT.
Let \(n\) be a positive integer, \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\). Let us consider the labeling \(f\), \(f: V(P_n)\cup E(P_n)\to \{ 1, 2,\dots, 2n-1\}\) defined in the following way: \[\begin{aligned} f(v_i)&=\begin{cases} 2n-1, &i=n,\\ 2n-1-i, &i=1, 2, \dots, n-1, \end{cases}\\ f(v_iv_{i+1})&=\begin{cases} \frac{i}{2}, &i\equiv 0\pmod 2,\quad i\le n-1,\\ \frac{n+i}{2}, &i\equiv 1\pmod 2,\quad i\le n-2. \end{cases} \end{aligned}\]
For the vertex-weights under the labeling \(f\) we get: \[\begin{aligned} wt_f(v_1)=& f(v_1)+f(v_1v_2)=\left(\tfrac{n+1}{2} \right)+(2n-2)=\tfrac{5n-3}{2},\\ wt_f(v_n)=& f(v_{n})+f(v_{n-1}v_n)=(2n-1)+\left(\tfrac{n-1}{2} \right)=\tfrac{5n-3}{2},\\ wt_f(v_i)=& f(v_{i-1}v_i)+f(v_{i})+f(v_{i}v_{i+1})\\ =&\begin{cases} \left(\tfrac{n+(i-1)}{2}\right)+\left(2n-1-i \right)+\left(\frac{i}{2}\right)=\tfrac{5n-3}{2},\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } i\equiv 0\pmod 2,\ 2\le i\le n-1,\\ \left(\tfrac{i-1}{2}\right)+\left(2n-1-i\right)+\left(\tfrac{n+i}{2}\right)=\tfrac{5n-3}{2},\\ \phantom{aaaaaaaaaaaaaaaa} \text{ for } i\equiv 1\pmod 2,\ 3\le i\le n-2. \end{cases} \end{aligned}\] Thus for \(i=1, 2, \dots, n\) we have \(wt_f(v_i)=\tfrac{5n-3}{2}\). This means that the labeling \(f\) is VMT.
Let us consider the edge-weights under the labeling \(f\). If \(i\equiv 0\pmod 2\), \(2\le i\le n-3\) then \[\begin{aligned} wt_f(v_iv_{i+1})=& f(v_i)+f(v_iv_{i+1})+f(v_{i+1})\\ =& (2n-1-i)+\left(\tfrac{i}{2} \right) + \left(2n-1-(i+1) \right)=4n-3-\tfrac{3i}{2}. \end{aligned}\] Thus the set of edge-weights for \(i\) even is \[\{wt_f(v_{2}v_{3}), wt_f(v_{4}v_{5}), \dots, wt_f(v_{n-3}v_{n-2}) \}=\left\{ 4n-6, 4n-9, \dots, \tfrac{5n+3}{2} \right\}.\] The edge-weights form an arithmetic sequence with a difference 3. For \(n\equiv 1\pmod 6\) the numbers in the set of edge-weights are congruent to 1 modulo 3. For \(n\equiv 5\pmod 6\) the numbers that form the set of edge-weights are congruent to 2 modulo 3.
If \(i\equiv 1\pmod 2\), \(1\le i\le n-2\) then \[\begin{aligned} wt_f(v_iv_{i+1})=& f(v_i)+f(v_iv_{i+1})+f(v_{i+1})\\ = &(2n-1-i)+\left(\tfrac{n+i}{2} \right) + \left(2n-1-(i+1) \right)= \tfrac{9n-3i}{2}-3. \end{aligned}\] The set of edge-weights for \(i\) odd form an arithmetic sequence with difference 3, more precisely \[\{wt_f(v_{1}v_{2}), wt_f(v_{3}v_{4}), \dots, wt_f(v_{n-2}v_{n-1}) \}=\left\{\tfrac{9n-9}{2}, \tfrac{9n-9}{2} -3, \dots, 3n \right\}.\] Moreover, in this case the edge-weights are congruent to 0 modulo 3.
And \[\begin{aligned} wt_f(v_{n-1}v_{n})=& f(v_{n-1})+f(v_{n-1}v_{n})+f(v_{n})\\ = &(2n-1-(n-1))+\left(\tfrac{n-1}{2} \right) + \left(2n-1\right)= \tfrac{7n-3}{2}\\ \equiv & \begin{cases} 2\pmod 3, \text{ for } n\equiv 1\pmod 6,\\ 1\pmod 3, \text{ for } n\equiv 5\pmod 6. \end{cases} \end{aligned}\]
According to the previous discussions for \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\) edge-weights are pairwise different.
Thus the labeling \(f\) is a simultaneously VMT and EAT labeling of \(P_n\) for \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\). ◻
Note that \(P_2\) and \(P_3\) are not simultaneously VMT and EAT. For \(6\le n \not\equiv 1,5 \pmod 6\) 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 \(P_n\) is derived from VMT labeling of cycle \(C_n\), see [2]. And for cycles there exist many non-isomorphic VMT labelings, see Table 1 [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 \(C_n\) 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 \(C_n\) are TAT.
We now prove the following result.
Theorem 5. For \(n=4\) or \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\) the cycle \(C_n\) is simultaneously VMT and EAT.
Proof. As we already mentioned, every VMT labeling of path \(P_n\) is derived from VMT labeling of cycle \(C_n\), see [2]. The idea is to modify the VMT labeling of cycle \(C_n\) by subtracting number 1 from every vertex label and every edge label of a VMT labeling of the cycle \(C_n\) 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(C_n)\cup E(C_n)\to \{ 1, 2,\dots, 2n\}\) defined in the following way: \[\begin{aligned} f(v_i)&=\begin{cases} 2n, &i=n,\\ 2n-i, &i=1, 2, \dots, n-1, \end{cases}\\ f(v_iv_{i+1})&=\begin{cases} \frac{i}{2}+1, &i\equiv 0\pmod 2,\quad i\le n-1,\\ \frac{n+i}{2}+1, &i\equiv 1\pmod 2,\quad i\le n-2,\\ \end{cases} \\ f(v_1v_{n})&=1. \end{aligned}\]
Analogously as in the proof of Theorem 4 we prove that the labeling \(f\) is a simultaneously VMT and EAT labeling of \(C_n\) for \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\). ◻
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 \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\) the cycle \(C_n\) is simultaneously EMT and VAT.
Note that for the cycle \(C_3\) there is neither a simultaneously VMT and EAT labeling nor a simultaneously EMT and VAT labeling. The cases when \(6\le n \not\equiv 1,5 \pmod 6\) are still unsolved.
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 \(n\ge 5\), \(n\equiv 1\pmod 6\) or \(n\equiv 5\pmod 6\) we proved that the cycle \(C_n\) is simultaneously EMT and VAT. For other cases we propose the following open problem.
Problem 3. For the cycle \(C_n\), \(6\le n \not\equiv 1,5 \pmod 6\), 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.
The work was supported by the Slovak Research and Development Agency under the contract No. APVV-19-0153.