1. Introduction and Motivation
In response to the widespread adoption of social distancing measures during recent pandemic years, Banič and Taranenko used the concept of “span” from topology [
1] and developed a graph theoretical measure known as the “graph span” [
2]. At its core, it is the maximal safety distance that two players can keep while moving through the vertices of some graph. Basic definitions introduce six types of graph spans, depending on weather the players have to visit all the vertices or all the edges of a graph (vertex and edge span) and what movement rules they follow (strong, direct, and Cartesian span). In our previous research [
3], we explored the relationships between different types of vertex spans and determined span values for specific graph classes. Additionally, in [
4], we conducted an analysis of edge spans and the minimum lengths of walks required to achieve these spans. In this paper, we once again observe vertex spans, now for two special classes of graphs—multilayered cycles, denoted by
, and multilayered paths, denoted by
. We can imagine a multilayered cycle as
k isomorphic cycles
, stacked on top of one another, with the corresponding vertices joined by “vertical” edges, forming a cylinder shape while multilayered paths form a grid graph with
n vertices “horizontally” and
k vertices “vertically”. These graphs are isomorphic to Cartesian products of path
and cycle
, or two paths,
and
, respectively [
5]; however, we use the terms multilayered cycle and multilayered path to better correspond with our motivation. In graph theory research, there are many directions in which the notion of distance is fundamental, from the classical observations to some newer ones [
6,
7,
8]. In fact, in the recent years, many research papers focused on observing the game theory approach in the problems of distances in graphs [
9,
10,
11,
12]. There is also some research on these classes of graphs we observe; for instance, weak homomorphisms on a stacked prism graph, which is another name for a multilayered cycle, or shortest paths on grid graphs [
13,
14]. Our motivation to observe vertex spans for these graph class stems from several distinct sources: first the need to determine safe occupancy limits in shopping malls (which are often designed in the multilayered cycle configuration), in response to social distancing measures, and second from our interest piqued by graph-based games, such as “Cops and Robbers” games [
15]. There are different versions of “Cops and Robbers” games, but the main idea is to have at least one “robber” and at least one “cop” moving through graph vertices, while the cop is trying to “catch” the robber and the robber is trying to keep his distance from the cop. There are many versions of the game where multilayered cycles are a common playground. Observed from above, it resembles a spider’s web, for instance, the game “The Spider and The Flies”, developed in 1898 (also “Web Chase” and “The Spider’s Web”). It is also worth noting that a version of a well-known game “Nine man’s morris” called “Morabaraba” (or “Twelve men’s morris”), which is played in South Africa as a sport, is played on a board that is exactly a multilayered cycle (
Figure 1).
Grids, on the other hand, find applications in various scenarios such as representations of city streets. Consequently, the concept of safety distance holds implications, especially if there’s a necessity to regulate the presence of a fixed number of individuals within a bounded area of the city. Additionally, grid-based structures are ubiquitous in various games where players may either aim to maintain distance from one another or actively pursue each other, as seen in games like “Cops and Robbers”.
In this paper, we provide a mathematical foundation for understanding span values in multilayered cycles and multilayered paths. Future research could delve deeper into the mathematical analysis of the games inspired by these structures as well as the generalization of the concept of span to accommodate scenarios involving three or more players navigating the graph. Our results on multilayered cycles demonstrate that, regardless of the chosen movement rules, span values for multilayered cycles are solely dependent on the cycle’s length, rather than the cylinder’s height. This finding is particularly intriguing and has significant practical implications. For multilayered paths
, we found that all the vertex span values depend only on the lesser of the two values
n and
k. In
Section 2, basic definitions and preliminaries for our research are given, and in
Section 3 and
Section 4, we present our main findings for multilayered cycles and multilayered paths.
Section 5 summarizes our results, while in
Section 6, we offer the open problems, ideas and directions for possible future research.
2. Preliminaries and Definitions
The term graph refers to a simple connected graph in the rest of the paper. We use standard graph theory notation [
16].
Definition 1. We let G be a graph with n vertices and . Multilayered graph is a graph with vertices denoted by where and and in which if one of the following holds:
The example of a multilayered graph is shown in
Figure 2.
Readers more familiar with graph products will notice that multilayered graph is actually a Cartesian product of graph G and path graph , i.e., .
In this paper, we observe special classes of multilayered graphs which are multilayered cycles and multilayered paths, i.e., multilayered graphs where graph G is either cycle or path .
Definition 2. We let . Multilayered cycle is a graph with vertices denoted by where and , and in which if one of the following holds:
Definition 3. We let . Multilayered path is a graph with vertices denoted by where and , and in which if one of the following holds:
We refer to vertex as vertex i in layer j. Also, we denote the layer of vertex by , as a layer is but a projection of a vertex to the second coordinate. Note that multilayered cycles are also known as stacked prism graphs or “web” graphs and multilayered paths as grid graphs or lattice graphs. Also, cube graph is isomorphic to multilayered cycle .
The examples of a multilayered cycle and a multilayered path are given in
Figure 3.
To describe the movement of two players in a graph, we define three types of functions that map
, for some
, to the set of graph vertices [
3]. Such a function represents the movement of a player through graph vertices in
l steps. These functions, and consequently vertex spans, are defined corresponding to three different movement rules that two players can apply in a graph, so let us repeat those rules.
Traditional movement rules: Both players move independently of one another; one can stand still while the other one moves, or they can both move at the same time;
Active movement rules: Both players move to an adjacent vertex in each step;
Lazy movement rules: In each step, exactly one of the players moves to an adjacent vertex while the other stands still.
The definitions of
l-tracks, lazy
l-tracks and opposite lazy
l-tracks are given in [
3], but since they are of great importance for this paper, we repeat them here.
Definition 4. We let be a graph and . We say that surjective function is an l-track on G if holds for each .
Definition 5. We let be a graph and . We say that surjective function is a lazy l-track on G if or holds for each .
Definition 6. We let G be a graph, lazy l-tracks on G. We say that f and g are opposite lazy l-tracks on G iffor all . For reasons of simplifying our proofs, we use the following terminology for lazy l-tracks in multilayered cycles and paths regarding the images of consequent steps. We let G be a multilayered cycle or a multilayered path, and a lazy l-track. For both multilayered cycles and paths, we employ the following terminology:
If and , we say that f stands still in step i;
If and , we say that f moves up in step i;
If and , we say that f moves down in step i.
Solely for multilayered cycles, we employ the following terminology:
If and , we say that f moves counter-clockwise in step i;
If and , we say that f moves clockwise in step i.
Solely for multilayered paths, we employ the following terminology:
If and , we say that f moves right in step i;
If and we say that f moves left in step i.
Note that those are the only options for any lazy l-track on and . If for some and a lazy l-track f on or , we have , we say that f is in layer b.
In order to formally define vertex spans, i.e., the maximal safety distance, we first provide the definition of the distance between two lazy l-tracks.
Definition 7. We let G be a graph, and two lazy l-tracks on G. We defineto be the distance between f and g. Analogously to an
l-sweepable graph in [
4], we define an
l-trackable graph.
Definition 8. We let G be a graph and . If at least one lazy l-track exists on G, we say that G is an l-trackable graph.
Lastly, we offer definitions for different vertex spans, first described in [
2] and then redefined in [
3].
We let
G be an
l-trackable graph. We define
We let
G be a graph and
such that at least one pair of opposite lazy
l-tracks exists on
G. We define
We let
G be a graph and let
be the set of all integers
l for which
G is an
l-trackable graph. We define the strong vertex span as the number
This number is the maximal safety distance that can be kept while two players visit all the vertices of a graph while following the traditional movement rules.
We define the direct vertex span as the number
This number is the maximal safety distance that can be kept while two players visit all the vertices of a graph with respect to the active movement rules.
We let
G be a graph and let
be the set of all integers
l for which opposite lazy
l-tracks exist on
G. We define the Cartesian vertex span as the number
This number is the maximal safety distance that can be kept while two players visit all the vertices of a graph with respect to the lazy movement rules.
3. Results on Multilayered Cycles
We now proceed with the results for vertex span values for multilayered cycles.
Lemma 1. We let graph for some . Also, we let be two opposite lazy l-tracks on G, . Then, there exists such that , i.e., and are in the same layer.
Proof. We let be any two opposite lazy l-tracks on G. If and are in the same layer, then the claim holds. Otherwise, let us assume that is in layer x and is in layer . Without any loss of generality, we can assume that , so . Since f is surjective, there exists such that is in the layer k. For such j, it holds that . Since f and g are opposite, if , for some , then . Now, given the fact that , and that the difference between layers changes by at most one for consequent steps, we know that there must exist some such that and therefore . □
An example of one such movement is presented in
Figure 4.
Lemma 2. .
Proof. Since by Lemma 1, for any two opposite lazy l-tracks, f and g, there exists an such that , then for such i, , hence . □
Theorem 1. .
Proof. First, we construct two lazy l-tracks, f and g, where , that are always at a distance of at least . We start by defining and , and then proceed in the following way: on odd steps, f moves and g stands still, and on even steps, f stands still and g moves. We define all movements in four stages.
For the first steps, on odd ones, f moves up, and on even ones, g moves up. So and .
On the next two steps, first, f moves counter-clockwise, and then g moves counter-clockwise. So, and .
For the next steps, on odd ones, f moves down, and on even ones, g moves down. So and .
On the next two steps, first, f moves counter-clockwise, and then g moves counter-clockwise.
Now, we repeat these four stages of movement until all vertices are visited. This kind of movement is presented in
Figure 5. It is easily seen that, defined this way,
f and
g are always at a distance of at least
. So,
. Combined with Lemma 2, we have
.
□
Lemma 3. We let graph for some . Also, we let be two lazy l-tracks on G, . Then, there exists such that , i.e., and are either in the same or in adjacent layers.
Proof. Much like in the proof of Lemma 1, we can easily see that if, for some , , then . In other words, in each step, the difference between layers of and can change by at most 2. The same line of reasoning as in the proof of Lemma 1 leads us to conclusion that, for some , and are either in the same or in the adjacent layers. □
An example of one such movement is presented in
Figure 6.
Lemma 4. .
Proof. By Lemma 3, for any two lazy l-tracks f and g, there exists an such that and are in the same or neighbouring layers. If and are in the same layer, then , hence both and are less than . If, on the other hand, and are in the neighbouring layers, then we can assume, without any loss of generality, that is in one layer above , so and for some . Now, . □
Theorem 2. .
Proof. We construct two
l-tracks
f and
g that start on the distance
and keep that distance at all times. First, let us describe the
l-track,
f. It starts in vertex
, moves through the whole layer clockwise, then moves up one layer and proceeds through the whole layer again in the same way. It continues to do so until it reaches the topmost layer and moves through it as well. Lastly, it moves down one layer and once again moves through it clockwise. For graph
, this movement is presented in
Figure 7.
It is easily seen that this way,
f visits all the vertices. Now, we describe the movement of
g depending on the movement of
l-track
f.
l-track
g starts its movement in vertex
, so
. Whenever
l-track
f moves clockwise,
g also moves clockwise, thus maintaining the same distance as well as visiting its whole layer while
f is visiting its own. The first time that
f moves up,
g moves down, and afterwards, whenever
f changes layers,
g moves up. This way,
g visits all the layers, and at each one it moves through all of its vertices while maintaining the same distance at all times. For graph
, the movement of
g is presented in
Figure 8.
It is easily seen that, defined this way, that f and g are always at a distance of at least . So, both and are greater than or equal to . Combined with Lemma 4, we have . □
4. Results on Multilayered Paths
We now proceed with the results for vertex span values for multilayered paths.
Lemma 5. We let graph ,= for some . Also, we let be two opposite lazy l-tracks on G, . Then, there exists such that , i.e., and are in the same layer.
Proof. Proof of this Lemma is completely analogous to the one of Lemma 1. □
For further considerations, we observe that is isomorphic to , since and the Cartesian product of graphs is commutative.
Lemma 6. .
Proof. Without the loss of generality, we let . Since by Lemma 5, for any two opposite lazy l-tracks f and g, there exists some such that , then for such i, ; hence, . We use the same reasoning for and determine that has to be less than or equal to . □
Theorem 3. .
Proof. Let us assume that and prove that, in that case, .
First, we construct two opposite lazy
l-tracks,
f and
g, that are always at a distance of at least
. We start by defining
and
, and then proceed in the following way: First,
g stands still while
f visits all the vertices that are on the distance of at least
from vertex
(first two grids in
Figure 9). Now,
f moves back to
. Next,
f stands still while
g visits all vertices that are on the distance at least
from vertex
and then moves back to its starting position (the third grid in
Figure 9). Then,
f and
g swap places by moving along the outer rim of a grid graph. They move one at a time and at all times keep their distance at at least
. Lastly, they visit the vertices that they previously did not in the same fashion they did in the first part of the movement. The swapping of positions and the last movement are presented in the last two grids in
Figure 9. □
For the direct vertex span, we first provide the results for the square grid graph, i.e., for . Afterwards, we use those results to prove the claim for direct and strong vertex span values in the general case.
Lemma 7. It holds that .
Proof. The claim follows from the fact that all vertex span values of any graph must necessarily be less than or equal to its radius, which was proven in Lemma 2.5 in [
3]. It is easy to see that
so it follows that
Hence,
. □
Theorem 4. It holds that .
Proof. We construct two
l-tracks,
f and
g, in
such that their distance is always equal to or greater than the radius of that graph. First, let us note the following. For vertices
, where
it holds that
Also, for vertices
, where
and
it holds that
Analogously, for the same vertex
, it holds that
This means that all the vertices in subgraph of graph (the bottom left square subgraph) are at the distance of at least from vertex (the upper left corner) in graph . Analogously, for each of the remaining three vertex corners, and , there is a square subgraph of dimensions such that all its vertices are on the distance at least from the corresponding corner vertex. Moreover, vertices and that are adjacent to the corner vertex are on the distance of at least from all the vertices in subgraph , except for vertex .
Let us describe l-tracks f and g.
We let
and
. In the first stage, function
g alternates between vertices
and
in such a way that
for even
i and
for odd
i. Meanwhile,
f moves through all the vertices of subgraph
. Note that
f always moves from
to
in an even number of steps, so for any
j for which
,
holds, thus securing that
. This movement is shown in the first grid of
Figure 10 and
Figure 11.
Now,
f and
g move following the outer rim of the graph,
g moves left via path
, and
f moves right through path
. Let us prove that while moving through this stage, their distance is at least
. Namely, for even
n,
f and
g will never be in the same vertical path, i.e., there is no
in this stage such that
and
, so in each step
i of this stage,
. For odd
n, there exists
such that
and
, so
. Obviously, for all the other steps of this stage, the distance of
f and
g is greater than
. This stage of the movement of
f and
g is shown in the second grid in
Figure 10 and
Figure 11.
After the second stage, g is in the corner vertex , and f is in the corner vertex , and the movement proceeds analogously as in the first stage with g alternating between and any of its adjacent vertices. Continuing in this fashion two more times, f visits all the vertices, and by switching their roles and repeating all the steps, g also visits all the vertices. We show that for l-tracks f and g constructed in this way, holds, so the claim is proven for the direct vertex span. □
Corollary 1. It holds that .
Proof. From [
3], we know that for any graph
G, it holds that
, and
, so from
, it follows that
. □
The values of the direct and therefore strong vertex span of when do not depend on the parity of n and k. Let us assume that , since is isomorphic to . We show that for for even n, the value for the strong span equals the value for the direct span and they equal n, which is the same as the value of the direct span for graph . For odd n, on the other hand, the value for the strong span again equals the value for the direct span and again they equal n; however, this differs from the direct span value of , which equals .
First, we prove the upper limit for , which is generally smaller than the graph radius.
Lemma 8. We let graph , for some such that . Also, we let be two lazy l-tracks on G, . Then, there exists such that , i.e., and are either in the same or in adjacent layers.
Proof. We let for some such that , and we let be two l-tracks on G, . If and are in the same layer, then . Let us assume that and are in different layers, and without the loss of generality we assume that . Since f and g are surjective, they must visit all the layers, so there exists some such that . We let j be the smallest number such that . If , then the claim is proven. If , then must hold due to the minimality of number j. But this means that , i.e., in steps and j, f and g are in the adjacent layers. □
Lemma 9. .
Proof. Without the loss of generality, we let and let be lazy l-tracks on . By Lemma 8, for some , f and g are in the same or in adjacent layers. If they are in the same layer for some , then , and if they are in adjacent layers, their distance is larger by 1, i.e., . □
Theorem 5. .
Proof. We let . In Lemma 9, we show that the direct and strong vertex span values cannot be larger than n, so it remains to describe l-tracks f and g for which the span values are achieved. We first prove that . We observe the parity of n in two separate cases.
n is even. To construct
l-tracks
f and
g such that
, we make use of the
l-tracks from the proof of Theorem 4. It is easy to see that graph
is a subgraph of
. Let us denote by
and
the
-tracks in
such that
. To obtain functions
f and
g, we first expand functions
and
so that after they both visit all the vertices in subgraph
(the first grid in
Figure 12), they return to the vertices they began in,
and
.
Figure 12.
Example of movement for f and g in for Case 1.
Figure 12.
Example of movement for f and g in for Case 1.
It is clear by the construction in proof of Theorem 4 that this is possible to achieve while keeping the safety distance. We let , , .
If , there is still an subgraph of whose whole set of vertices is unvisited. So from vertices and , f and g move up simultaneously by n steps, thus coming to the corner vertices of such a subgraph. They proceed to visit all the vertices of this subgraph in the same fashion as and , at the end coming to the starting corner vertices and then moving up again by n steps if there is still an subgraph whose whole set of vertices is unvisited.
If that is not the case (after
a visits
subgraphs), they both move up by
steps (the second grid in
Figure 12). With this movement,
g comes to vertex
and
f comes to vertex
. They are again in the corner vertices of a subgraph isomorphic to
, so they proceed as before (the third grid in
Figure 12).
n is odd. For odd n, , so we do not use the same construction as in Theorem 4, although our approach is similar. We distinguish two subcases, depending on the parity of k.
- 2.1.
For even
k, we can use an analogous construction as in the case
. Let us just reiterate some key points. We let
and
. Now, while
g alternates between
and
,
f moves through all the vertices of subgraph
(the first grid in
Figure 13).
Figure 13.
Example of movement for f and g in for Case 2.1.
Figure 13.
Example of movement for f and g in for Case 2.1.
Note that when the distance between vertices
and
is even, as in the proof of Theorem 4,
f will be in vertex
exactly when
g is in
and the distance between those two vertices is
. On the other hand, when the distance between vertices
and
is odd,
f will be in vertex
when
g is in
. However, the distance between those two vertices is also at least
n. Let us show this. It holds that
Since
,
n is odd and
k is even, we have
. However, if
, then the distance above equals to
, which is an even number, and therefore impossible. We conclude that in this case,
. Now, let us calculate the distance between
and
. It holds that
We proceed with
f moving right, through path
and
g moving left, through
(the second grid in
Figure 13). This movement takes place on the smallest distance
f and
g reach when they are in the same vertical path, and that distance is
. They then continue in the same fashion,
g alternates between
and any of its adjacent vertices while
f visits the lower right subgraph isomorphic to
(the third grid in
Figure 13). In the next stage,
f moves up from corner
to
while
g moves down, from
to
(the fourth grid in
Figure 13). During this stage, by Lemma 8,
f and
g are in the same or in the adjacent layers. But, since
k is even and they are following active movement rules, it is easy to see that they will never be in the same layer, thus keeping their distance at at least
. The rest of the construction proceeds analogously to that described in Theorem 4.
- 2.2.
For odd k, the construction is not the same, because in the stage while f is moving up on the right vertical brim and g is moving down on the left vertical brim, they will come to the same layer if they both started in the corner vertices. We can remedy that by having g start the movement in vertex while f starts in .
Note that this does not interfere with distances kept in the first stage of the movement, because
f will again be in vertex
when
g is in corner vertex
due to the parity of
n and
k (in the odd number of steps). This stage is shown in the first grid in
Figure 14. The distance of
f and
g, while in the second stage (
f moves right horizontally and
g moves left horizontally, from
to
, and then down to
), is once again at least
(the second grid in
Figure 14). After the next stage, in which
f visits the lower right subgraph, for vertical switching,
f moves through path
and
g moves through
and then
(the third grid in
Figure 14). In this way,
f and
g are never in the same layer and their distance is at least
. The rest of the construction once again follows analogously.
Figure 14.
Example of movement for f and g in for Case 2.2.
Figure 14.
Example of movement for f and g in for Case 2.2.
We prove that
, and since from Theorem 3 we have
, from result
in [
3], it follows that
. □