![MathJax Logo](/templates/jsp/_style2/_tandf/pb2/images/math-jax.gif)
Abstract
Let be a graph, by
, we mean the set of all 2-combinations of
. We say that a graph
is
-swappable if for every edge
, there are two sets
,
such that
,
, and
. The swapping number of
is the minimum
such that
is
-swappable.
Let be an integer. Every tree with exactly one vertex of degree
and remaining vertices of degree
or 1 we will call a
-nary tree.
In this paper we give sufficient conditions for general graphs as well as sufficient and necessary conditions for a -nary tree for
to be 2-swappable.
1 Introduction
In this paper, we deal with finite, simple and undirected graphs. Let us consider a graph , whose number of vertices we call the order and number of edges we call the size of
. If
, then we will understand
to mean the graph induced by
on the vertex set
. By
, we mean the set of all 2-combinations of
. A vertex
is called primary if
. A
is a vertex of degree one.
The girth of a graph is the length of a shortest cycle contained in the graph and it is denoted by
. If the graph does not contain any cycles its girth is defined to be infinity.
A spider is a tree in which exactly one vertex
has degree greater than 2. We call
the central vertex of
. An arm of a spider
is a connected component of
. We denote a spider with central vertex of degree
by
, where
are the numbers of vertices in the arms; thus
.
Let be an integer. Every tree with exactly one vertex of degree
and remaining vertices of degree
or 1 we will call a
-nary tree. The vertex of degree
we will call the root of a
-nary tree and denote by
.
In this paper we will consider -swappable graphs. The definition of
-swappable was given in [Citation1].
Definition 1
Let be a graph and let
be a positive integer. We say that
is
-swappable if for every edge
, there are two sets
,
such that
,
, and
. The swapping number of
is the minimum
such that
is
-swappable.
There is an interesting motivation for investigation of swappable graphs [Citation1]. Consider a network connecting different computing resources; such a network is modelled by a graph. Suppose that the network works if and only if it has an exact structure (logical topology of the network), so if any of the connections breaks then the network does not work. Suppose that connections between nodes are expensive to add or remove, so we are looking for the minimum number of new connections in a broken network in order to obtain the structure
.
In [Citation1] Froncek et al. classified all 1-swappable trees and unicyclic graphs, and proved that the expected value of the swapping number grows linearly with the size of the graph. They proved the following theorem:
Theorem 1
Let be a tree on two or more vertices. Then
is 1-swappable if and only if
is a path on at least three vertices or
or
.
Ross found four infinite families of regular graphs that are 2-swappable, [Citation2]. The aim of this article is a characterization of
-swappable
-nary trees for
.
2 Some ![](//:0)
-swappable graphs
In this section we present some family of -swappable graphs.
Theorem 2
Let be a graph satisfying the following conditions:
1. |
|
2. | any primary vertices |
3. | for any leaf there exists a leaf with different neighbour, |
then is
-swappable graph.
Proof
Let .
Suppose first that is a leaf. By assumption 3 there exists a leaf
such that
. Let
and
. Notice that
and
.
From now by assumption 2 without loss of generality we can assume that has degree
and
. Let
and
. Let us consider two cases:
Case 1.
Let and
. Since
,
.
Case 2.
Let and
. Since
, observe that
. Notice that
and
.
Case 3.
If then
and
and hence
.
If then by assumption 2
and
. Note that
, because
. Let now
and
. It follows that
and
.
Recall that there are regular graphs that are 2-swappable [Citation2]. Therefore the condition 2 given in Theorem 2 is not necessary. Moreover, in we show that none of the conditions from Theorem 2 is necessary.
3 The family of ![](//:0)
-nary trees
Let be a
-nary tree with the root
and let
. Then there is exactly one path joining vertices
and
in
. Let
denote the distance of vertices
and
. We will usually refer to a path by one of the sequences of consecutive vertices. That is, for vertices
,
let
-path denote the path from
to
.
Let such that
and
is a vertex of the
-path. A branch of
pointed by the vertex
, denoted by
, is a connected component of
with
as a vertex. Observe that
is a
-nary tree or a vertex. Let
such that
is a vertex of
-path. A twig pointed by the vertex
and determined by the vertex
, denoted by
, is the graph
, where
and
is a vertex of
-path.
Let be
-path and
be
-path. If there are vertices
,
such that twigs
and
are isomorphic for
, then we say that
-path and
-path are twins (or more precisely the paths are twins according to the vertex
for
-path and the vertex
for
-path). We say that
-path is symmetric (symmetric according to the vertex
) if there is a vertex
such that for every
twigs
and
are isomorphic and
. The
-path is sequential (according to the vertex
) if there are a vertex
and
such that
and twigs
and
are isomorphic graphs for
and
.
Let such that
is a vertex of
-path. We will write that the edge
is adjacent to a symmetric path if there is at least one of vertices
,
such that
-path is symmetric according to
or
-path is symmetric, where
is a vertex of
-path,
is a vertex of
-path. We say that the edge
is added to a sequential path if
-path is sequential according to
. We say that the edge
joins twin paths if there are vertices
,
which are not vertices of
-path and such that
-path according to
and
-path according to
are twins (see ).
Theorem 3
Let ,
be a
-nary tree with the root
. The only 2-swappable
is
. The graph
is 2-swappable if and only if for every edge
,
, where
is a vertex of
-path, one of the following conditions holds:
(i) is adjacent to a symmetric path,
(ii) is added to a sequential path,
(iii) joins twins paths,
(iv) there is a vertex such that branches
,
are isomorphic graphs,
(v) there is a vertex such that
-path according to
and
-path are twins
(vi) (only for and
) there is a leaf
such that
or
-path is symmetric according to
, where
,
.
Proof
Let . Set
. Let
. If
,
we obtain that
and
are isomorphic. It is easy to see that it is the only 2-swappable star
.
We can assume that .
Let us consider such that
. Since
there is a leaf
such that
. Then
. Hence such edges have no influence property of 2-swappability. From now we will consider edges not at leaves.
Sufficiency. Let and let
be a vertex of
-path. In every case we will find sets
and
such that
,
,
and graphs
and
are isomorphic.
Let us first suppose that is adjacent to a symmetric path. Let us assume that there are vertices
,
such that
-path is symmetric according to
. We set
and
. If
-path is symmetric according to
then
and
. If there is a vertex
such that
is a vertex of
-path and
-path is symmetric according to
then we set
and
, where
is the only neighbour of
on
-path.
Suppose that is added to a sequential path. If
-path is an edge then
and
. Otherwise, there are consecutive vertices
,
,
of
-path such that
,
. We set
,
.
Assume that joins twins paths. Let
,
be vertices such that
-path according to
and
-path according to
are twins. Then we set
and
.
Suppose that there is a vertex such that
and branches
,
are isomorphic. Let
be the vertex of
-path. Then we write
and
.
Suppose that there is a vertex such that
-path according to
and
-path according to
are twins, where
and
is not a vertex of
-path. Then we set
and
.
Finally, let ,
and there is a leaf
such that
or
-path is symmetric according to
, where
,
. Then
, where
,
and
.
Necessity. Let . No vertices incident with
are leaves. Since we assume that
is 2-swappable, for that edge
we have sets
,
such that
,
,
and
. In the proof for that edge
we will consider every set
such that
and
. For every chosen set
we will reflect on every possible set
such that
and
. In every case, for every considered sets
and
we will obtain that one of conditions (i)–(vi) holds. Since the proper sets
and
are among considered pairs of sets
and
we will obtain that for that edge
at least one of the conditions (i)–(vi) holds.
We will consider possibilities of choosing and then of choosing
. In every case
denotes isomorphic mapping of
on vertices of a new
-nary tree
. By
we will denote the image of
by isomorphic mapping
, that is the twig pointed by
and determined by
in
-nary tree
.
Case 1. One vertex incident with is the root
.
Denote ,
. We have to consider five different types of the set
:
,
,
,
where
,
,
,
,
are vertices of
-path,
where
,
,
,
is not a vertex of
-path. In every case we try to choose the set
. Observe that, except for
and
, in every case new edges have to join only vertices of deleted edges and only one of that vertices could became a new root. No leaf could became a new root. We can construct a new
-nary tree for the last two types of
and for the second one for
.
Subcase 1.1. ,
,
,
,
,
are vertices of
-path.
Let
denote the vertex of
-path such that
,
. We have two possibilities of choosing
:
or
. Let us first suppose that
. Then
. Set
. It is clear that
and for every
,
. Hence without loss of generality we may assume that
.
We will ask which vertices of -path satisfy property:
,
. Observe that for
the property is satisfied. Let us consider
such that
. It is easy to see that then
for every
. Observe that for
we have that
. Therefore
for
. If
we obtain that
-path is symmetric (according to
) and hence
satisfies condition (i). Let
and
. Then
is a vertex of
. Let us consider
. Observe that the set of vertices of
and, moreover, vertices
, …,
are vertices of
. For that
,
are isomorphic and have different number of vertices, a contradiction.
Let . Then
. Let us suppose that for every
we have
. Then
,
and then
,
. Since
and hence
we obtain that
,
. Especially,
-path is symmetric according to
and
satisfies (i). Let us suppose that there is
such that
,
. It is easy to see that
,
and, like previously, we obtain that
,
. We have that
is the vertex of
. Observe that
and vertices of
are vertices of
, contrary to that
. Similarly we obtain that it is impossible that
.
Subcase 1.2. ,
,
,
,
are vertices of
-path.
In this subcase . Then
and like in Subcase 1.1., using the set
, we can assume that
. Hence
and
satisfies (iv).
Subcase 1.3. ,
,
.
Then , where
is a leaf and
,
. Then
. If
then
satisfies (vi). Let
,
. Like in Subcase 1.1. we may assume that
,
and
. Moreover, using the same arguments as in Subcase 1.1. we can prove that
and
-path is symmetric according to
, where
, and hence
satisfies (vi).
Case 2. The edge is not incident with the root.
Denote ,
,
,
,
. Let
denote the vertex of
-path such that
,
.
Subcase 2.1. .
To obtain isomorphic -nary tree we have to choose
. Then
. If
then there is a vertex
of
such that
,
and
satisfies (iv). Hence we may assume that
and then, like in Subcase 1.1.,
,
. Hence
-path is symmetric according to
and
satisfies (i).
Subcase 2.2. , where
.
Then and
. Like in Subcase 2.1. if
then
satisfies (iv). Let
. Then
,
,
. Observe that
,
,
. Hence
,
and especially
-path is symmetric according to
and
satisfies (i).
Subcase 2.3. ,
,
,
.
We have several possibilities of choosing :
,
,
,
,
. Edges in
join only vertices
,
,
,
,
. For chosen sets
,
let us reflect on branches of
and branches of the new
-nary tree
. Since
and
are isomorphic, we obtain that families of branches pointed by all vertices from V are the same in both trees. Observe that if
is not a vertex of
-path then the branch pointed by
in
is isomorphic to the branch pointed by
in
. For this reason the families of branches pointed by vertices of
-path in
and
are the same. Moreover, in
branches pointed by vertices of
-path have a property: for
,
is a subgraph of
and of
,
. Hence branches pointed by vertices of
-path in
should have the same property.
I. .
Then and, by remark about branches, we can deduce that
-path according to
and
-path according to
are twins. Hence
-path is symmetric according to
and
satisfies (i).
II. .
Then . By remark about branches we have that
-path and
-path, both according to
, are twins and hence
-path is symmetric according to
.
III. .
Then . We reflect on
vertices of
-path and
vertices of
-path. We will find which paths are twins. Every pair of twins path in
is taken according to
. Let us first suppose that
. Then by remark about branches,
-path and
-path are twins. We also have that
-path and
-path are twins. From above we obtain that
-path is symmetric according to
and hence
-path is symmetric according to
and
satisfies (i).
Assume that . Observe that
-path and
-path are twins. We also have that
-path and
-path are twins. Especially, their proper parts:
-path and
-path are twins, and hence
-path and
-path are twins. We consider vertices of
-path. From above we also obtain that
,
, that is
-path and
-path are twins. Moreover, we can observe that
-path and
-path are twins, too and so on. Hence we have that
, where
. Let
, where
,
are natural numbers such that
,
. Observe that
-path is symmetric according to
and
satisfies (i).
Suppose that . We notice that
-path and
-path are twins. Then we consider
-path and observe that
-path and
-path are twins. Hence
-path is symmetric according to
.
IV. .
Then . We consider
vertices of
-path and
vertices of
-path. We will find twins paths. Every path in
will be taken according to
.
Let us first suppose that . Then
-path and
-path are twins. We also have that
-path and
-path are twins. Especially,
-path and
-path are twins. From above we obtain that
-path and
-path are twins and, moreover,
,
. Because of the structure of twigs of the first and of the last
vertices of
-path we obtain that
-path is symmetric according to
.
Suppose that . Then
-path and
-path are twins and
-path and
-path are twins. Then
-path is symmetric according to
and
satisfies (i).
V. .
We consider vertices of
-path and
vertices of
-path. It is obvious that
. We will find twins paths. Every pair of twins paths in
is taken according to
. By the remark about branches we have that
-path,
-path are twins and
-path,
-path are twins.
Let us first suppose that . Then for
-path we obtain that
-path and
-path are twins. For
-path we obtain that
-path and
-path are twins. Hence we have that
-path,
-path are twins and
joins twins paths.
Suppose that . For
-path we have that
-path,
-path are twins. For
-path we know that
,
,
and
-path,
-path are twins.
From now we will consider -path. From above we obtain that
-path,
-path are twins and
,
,
. Let
, where
,
are natural numbers such that
,
. If
then it is easy to see that
and
-path is sequential according to
. Assume that
. Using properties of
-path we will describe its twigs, first starting with
and going to
and then starting with
and going to
. In the first way we obtain that
,
,
,
,
,
. In the other way we obtain that
,
,
,
,
,
,
. Comparing these results we observe that
,
,
,
,
and hence
,
. Moreover,
-path and
-path (
-path) are twins. Let
, where
,
are natural numbers such that
,
. If
, then
and
-path is sequential according to
. If
we will repeat reasoning above replacing
by
and
by
. In every step we have the remainder less than the one in previous step. Hence there are the natural numbers
,
such that
, and finally
-path is sequential according to
the edge
satisfies (iii).
Subcase 2.4. ,
and
is
-path.
Observe that if and
it is impossible to fix the set
and a new
-nary tree. Assume that
. Then
and
.
Let us suppose that . Then
is not a vertex of
-path and
. Since
, we have that
. We have that
. Hence
satisfies (iv).
Therefore we may assume that . Then
,
,
. Hence
,
and especially
-path is symmetric according to
and
satisfies (i).
Subcase 2.5. ,
and
is
-path.
We have some possibilities of choosing .
I. .
Then . Observe that it is impossible that
.
If then
is not a vertex of
-path and
,
,
. Hence
satisfies (iv).
Therefore we may assume that . Then
,
,
, (
). Hence
-path is symmetric according to
.
II. .
Then . Similarly as in I.,
and if
then
satisfies (iv). We may assume that
and then
,
, (
,
). Hence
-path is symmetric according to
.
III. .
Then . If
then
is not a vertex of
-path,
,
,
and hence
satisfies (iv).
Let . Then
,
,
,
,
and hence
-path,
-path are twins and
-path,
-path are twins, in every case according to
. We consider
vertices of
-path and
vertices of
-path. Twins paths which we will find in
, we will take according to
.
Suppose that . Then we have that
-path and
-path are twins and also
-path and
-path are twins. Hence
-path is symmetric according to
and
satisfies (i).
Suppose that . Then we have that
-path and
-path are twins and also
-path and
-path are twins. From above we obtain that
,
,
. Let us consider
vertices of
-path. Let
, where
,
are natural numbers such that
,
. Observe that
-path is symmetric according to
and
satisfies (i).
IV. .
Then . Once again, if
, then, since it is obvious that
,
satisfies (iv). Let
. Then
-path,
-path are twins, both according to
and
-path,
-path are twins, both according to
. We repeat arguments of Subcase 2.3.IV. replacing
by
,
by
,
by
,
by
and obtain that
-path is symmetric according to
.
V. .
Then and it is impossible that
. If
we obtain that
satisfies (iv). Let us assume that
. Then
,
,
,
,
. We consider
-path of
vertices and
-path of
vertices. In Subcase 2.3.V. we consider
-path such that
,
and
-path,
-path are twins, both according to
where
. We proved that if
, where
,
are nonnegative integers,
,
then
-path has properties:
,
,
-path,
-path are twins, both according to
.
If , then
and
-path is sequential according to
. Let
be the greatest common divisor of
and
. Observe that
is a divisor of
, too. We can repeat the arguments for
and
and obtain that either
and
-path is sequential according to
or
,
,
,
-path,
-path are twins, both according to
and
is a divisor of
. Since in every step we have the remainder less than the one in a previous step, then after several steps we obtain that there is
such that
,
,
are positive integers,
is a divisor of
and
-path is sequential according to
.
In the following part of V. considered path (in ) are taken according to
.
Assume that . The mapping
courses that
-path,
-path are twins and
,
,
,
-path,
-path are twins.
Let be the greatest common divisor of
and
. First we look at
-path and use described above procedure. We obtain that there is a positive integer
such that
,
is a divisor of
and
,
,
. We turn back to
-path. The mapping
courses that
-path,
-path are twins. Hence
,
and
-path,
-path are twins and
-path,
-path are twins. Vertices of
-path are vertices of
-path, too. Hence
-path,
-path are twins. Moreover, for
-path we have that
-path,
-path are twins. We conclude that
-path,
-path are twins and
,
.
Let , where
,
are nonnegative integers and
. If
, then
-path is sequential. If
, then
is a divisor of
and we repeat procedure of finding the positive number
such that
,
is a divisor of
and
,
.
It is clear that . We check
-path. Observe that properties associated with the value
follow the same for
, that is,
,
,
,
-path,
-path are twins.
Let where
,
are nonnegative integers
. If
, then
-path is sequential. If
, then we once more use described procedure and obtain that there is a positive integer
such that
,
is a divisor of
and
,
,
.
It is obvious that . Then we consider
-path and so on. We obtain less and less positive integer with
as a divisor. Hence finally we obtain that
,
,
and
-path is sequential, hence
satisfies (ii).
Assume that . The mapping
for
-path courses that
,
,
-path,
-path are twins, for
-path courses that
-path,
-path are twins. Hence
-path,
-path are twins.
Let be the greatest common divisor of
and
. If
, then
-path is sequential If
, then we obtain that there is a positive integer
such that
,
is a divisor of
,
,
.
Let us consider -path. Since
-path,
-path are twins we have that
,
,
and
-path,
-path are twins. Since
-path,
-path and
-path,
-path are twins, we obtain that
-path,
-path are twins.
If is a divisor of
, then we obtain that
-path is sequential. If
, then there is a positive integer
such that
,
is a divisor of
,
,
,
. We repeat arguments again and again and finally obtain that
-path is sequential.
Subcase 2.6. ,
,
is
-path.
I. .
Then . If
then
,
and hence
-path is symmetric according to
. If
then
satisfies (iv).
II. .
Then . If
then
,
. Hence
,
. Especially,
-path is sequential according to
. If
then
satisfies (iv).
Subcase 2.7. ,
,
,
,
,
,
is
-path,
is
-path,
,
,
.
Observe that if it is impossible to create a new
-nary tree. We may assume that
or
.
We have several possibilities of choosing .
I. .
Then . If
then
has to be isomorphic to
and
satisfies (iv). If
then
and
-path according to
,
-path according to
are twins. Hence
satisfies (v). If
is not a vertex of
-path and is not a vertex of
-path then
,
and
. Hence
satisfies (iv).
II. .
Then . If
then
and hence
. Therefore there is a vertex
such that
. Observe that
and
and then
satisfies (iv).
We may assume that . Then
and
,
,
,
. Observe that every vertex outside
-path and outside
-path points a branch in the new
-nary tree
isomorphic to a branch pointed in
. Since the family of branches in
pointed by all vertices is the same as the family of branches in the new
-nary tree
pointed by all vertices, we have that the family of branches pointed by vertices
in
is the same as the family of branches pointed by vertices
in the new
-nary tree
. Moreover, we have that the family of branches pointed by vertices
in
is the same as family of branches pointed by vertices
in the new
-nary tree
. Since
is a subgraph of
,
, in
, we obtain that
-path according to
and
-path according to
are twins. Then
-path according to
and
-path according to
are twins. Hence
and hence
-path is symmetric according to
and
satisfies (i).
III. .
Then . If
then
and hence
. Therefore there is a vertex
such that
and
,
. Then
satisfies (iv). If
, then
and
. Hence
and
satisfies (iv). We may assume that
. Then
-path according to
,
-path according to
are twins and hence
. Moreover, vertices of
-path are mapped, in proper order, to vertices of
-path. Observe that every vertex outside
-path and outside of
-paths points a branch in the new
-nary tree
isomorphic to a branch pointed by it in
. Since the family of branches in
pointed by all vertices is the same as the family of branches in the new
-nary tree
pointed by all vertices, we have that the family of branches pointed by vertices
in
is the same as the family of branches pointed by vertices
in the new
-nary tree
. Since vertices of
-path are mapped to vertices of
-path, we obtain that the family of branches in
pointed by vertices
and the family of branches in the new
-nary tree
pointed by vertices
are the same. Moreover,
is a subgraph of
for
in
. Hence we obtain that
-path according to
and
-path according to
are twins. Then
satisfies (v).
Subcase 2.8. ,
,
is
-path.
Then and
. It is easy to see that
is a nonisomorphic subgraph of
. Hence without loss of generality we may assume that
,
. Then
and
satisfies (iv).
Subcase 2.9. ,
,
,
,
is
-path,
is
-path.
We have several possibilities of choosing .
I. .
We repeat the arguments of Subcase 2.7.I., replacing by
and
by
.
II. .
Then . Since
, we have that
. Observe that
is not a vertex of
-path and is not a vertex of
-path because otherwise the branch pointed by
is a nonisomorphic subgraph of the branch pointed by
in the new
-nary tree
, which is impossible. Hence
is not a vertex of
-path and
-path. Since
, it is impossible that
. Hence
and
satisfies (iv).
III. .
Then . If
then
and hence
. Hence there is a vertex
such that
, and hence
,
. Then we obtain that
satisfies (iv). Let us suppose that
. Then
-path according to
,
-path according to
are twins and the branch pointed by
in the new
-nary tree
is isomorphic to
. Observe that it follows that
. But
is a nonisomorphic subgraph of
, a contradiction.
Notes
Peer review under responsibility of Kalasalingam University.
References
- Froncek D. Hlavacek A. Rosenberg S.J. Edge reconstruction and the swapping number of a graph Australas. J. Combin. 58 2014 1 15
- M.S. Ross, 2-Swappability and the Edge-Reconstruction Number of Regular Graphs, http://arxiv:1503.01048 [math.CO].