An undirected graph is said to be cordial if there is a friendly (0,1)-labeling of the vertices that induces a friendly (0,1)-labeling of the edges. An undirected graph is said to be -orientable if there exists a friendly (0,1)-labeling of the vertices of such that about one-third of the edges are incident to vertices labeled the same. That is, there is some digraph that is an orientation of that is -cordial. Examples of the smallest noncordial/non--orientable graphs are given, and upper bounds on the possible number of edges in a cordial/-orientable graph are presented. It is also shown that if is a linear operator on the set of all undirected graphs on vertices that strongly preserves the set of cordial graphs or the set of -orientable graphs, then is a vertex permutation.
Keywords: Friendly labeling, Cordial graph, (2,3)-cordial digraph, (2,3)-orientable graph, Linear operator, Linear preserver, Vertex permutation
1. Introduction
Let denote the
set of all simple loopless undirected graphs on the vertex set . Let be an undirected graph in with vertex set and edge set . A -labeling of the vertex set is a
mapping and is said
to be friendly if approximately one half of the
vertices are labeled 0 and the others labeled 1. An induced labeling of
the edge set is a mapping where for an edge for some
and is said to be cordial if is
friendly and about one half the edges of are labeled 0 and the others labeled 1,
that is, both and are friendly. A graph, , is called
cordial if there exists a cordial induced labeling
of the edge set of .
Let denote the
cardinality of the set , so
that denotes the number
of edges labeled if is the labeling of the
edges.
In this article we consider not only cordial undirected graphs but
also use a cordial labeling of directed graphs that is not merely a
cordial labeling of the underlying undirected graph. It was defined and
studied in [1].
We shall consider three classes of graphs: Those that are cordial
with an induced edge labeling consisting of the sum modulo 2 of the
labels of the end vertices (see [3]); those that are cordial with an induced edge
labeling consisting of the product of the labeling of the end vertices
(see [5]) and those that are
-orientable (see[1]), that is, graphs that may be
oriented such that if each arc of the directed graph is labeled as the
label of the terminal vertex minus the label of the initial vertex, and
we have that about one third of the arcs are labeled 0, about one third
labeled 1 and the remaining one third labeled -1.
2. Preliminaries
We begin with formal definitions of the terms from the
introduction.
Definition 2.1. (See [4]) Let be a set and label the set
with entries from the set .
Let the function that preforms
this labeling. This labeling of a set is called -friendly if
for any . A labeling is said
to be -friendly if it is -friendly where is the set of integers
modulo . Further the labeling
is said to be
friendly if it is -friendly.
Definition 2.2. Let be a semiring and
be an undirected graph with
vertex set and edge set . Let be an -friendly labeling of the
non-isolated vertices of
and let be an
induced labeling of , that is
given an edge , where . Note that must
be symmetric to be well defined. The graph with the -friendly labeling of the non-isolated vertices of and induced edge labeling is said to be -cordial if
is also an -friendly mapping. Also, is -cordial if is , and we say is cordial
if is .
Remark 2.3. It should be noted that -cordial and -cordial are the same and in fact is the usual definition
of cordial where is a labeling and . Further, the
restriction that is a friendly
labeling of the non-isolated vertices, not necessarily all vertices, is
required because, for example, if the restriction to non-isolated
vertices were not required, the graph would be -cordial as a graph on
five vertices and not on four vertices.
For digraphs we have a similar definition, however, as digraphs are
not usually symmetric, we do not require the induced mapping to be symmetric:
Definition 2.4. Let and be sets and let be an directed graph with vertex
set and arc set . Let be an -friendly labeling of the
non-isolated vertices of and let
be an induced
labeling of , that is given an arc
, where . The graph with the
-friendly labeling of the non-isolated vertices and
induced edge labeling is said to
be -cordial if is a -friendly mapping. When and we say that
is -cordial. In particular we say
that is -cordial if , and . Note
that in this case is
anti-symmetric.
Note that in the above definitions, if is the binary mapping
corresponding to one of the binary operations on or we indicate that by placing
that operator in the notation. For example a digraph is -cordial
indicates that the induced labeling is . So a
digraph is -cordial means
that the arc labelings are for the arc . In this specific
case we usually drop the minus sign and write -cordial. A graph with an -friendly vertex labeling is
product cordial if it is -cordial (see [5]). Unless specified otherwise,
product cordial graphs have the vertex set labeled with .
Definition 2.5. An undirected graph is said to
be -orientable if some
orientation of the edges yeilds a -cordial digraph.
3. Extremes of cordial graphs
In this section we shall exhibit examples of graphs that are the
smallest or largest (edgewise) of cordial/noncordial graphs.
3.1. -cordial/Non-cordial graphs
3.1.1. Smallest -cordial/Non-cordial graphs
It is easily shown that the graph with one edge and all graphs with
three edges are -cordial.
However, the connected graph with two edges (a 2-path or a 2-star) is
-cordial while the graph
is not and the complete graph
on vertices is not -cordial..
3.1.2. Largest -cordial/Non-cordial graphs
If , is not -cordial. So how large can a graph
be and be -cordial? That is:
How many edges can a -cordial graph on vertices contain?
Let be a friendly labeling of
. Since the labeling of the
vertices of a complete graph is independent of the visual location of
the vertex, we may assume that the vertices labeled 0 are located on the
right half and the vertices labeled 1 are on the left. The vertices
labeled 0 induce a graph of order and the vertices labeled 1 induce a
subgraph of order , or visa
versa. In either case there are precisely edges labeled 0 and the others labeled
1.
So if is even, say , there are edges labeled 0 and edges labeled 1. Thus to have a -cordial graph one must delete at
least edges joining vertices
that are labeled differently. Thus, when is even, there can be at most edges in a -cordial graph.
If is odd, say , there are edges labeled 1 and edges labeled 0. Thus to get a graph
that is -cordial one must
delete at least edges
connecting vertices labeled differently. Thus, when is odd, there can be at most edges in a -cordial graph.
The added “+1” in the formulas accounts for the fact that for a
cordial graph the cardinality of the two sets and may differ by 1.
3.2. Product cordial/non-cordial
graphs
3.2.1. Smallest
-cordial/non-cordial graphs
It is easily shown that all graphs with one, two, or three edges are
-cordial. There are two
graphs with four edges that are not -cordial, the four cycle and
a three cycle with an attached edge.
3.2.2. Largest -cordial/non-cordial
graphs
For a labeling of the vertices of a graph on vertices to be friendly, at most vertices can be
labeled 1. Thus, at most
edges can be labeled 1 for any product cordial graph on vertices. Thus, a -cordial graph on
vertices can have at most at most
edges since
if .
3.3. -orientable/non-orientable
graphs
3.3.1. Smallest -orientable/non-orientable
graphs
Note that the graph consisting of three mutually non incident arcs is
-cordial in the set of
digraphs on seven or more vertices but not in the set of digraphs on six
vertices. Thus the need for using nonisolated vertices in the above
definition to avoid ambiguity. All other graphs consisting of the union
of three edge graphs are -orientable. There are a total of
five non isomorphic graphs of three edges. See Figure 1 for the
-orientable ones and Figure 2 for the non orientable one.
Figure 1 -orientable labelings of four 3-edge graphsFigure 2 The non -orientable 3-edge graph
3.3.2. Largest -orientable/non-orientable
graphs
It was shown in [1] that
the only complete graphs that are -orientable are for . For , Santana in [6] showed that for given the maximum number of edges in a
-orientable graph is The proofs are similar to
those in Section 3.1.2 above.
4. Linear operators on graphs
Let be a mapping such that the image of a union of graphs is
the union of the images of the graphs and that the image of the edgeless
(empty) graph, , is
the edgeless graph. Such a mapping is said to be a linear
operator. Note that is a semimodule over the set where addition is union and
scalar multiplication is Boolean, that is for , and . For convenience we use
juxtaposition for multiplication and we denote by . So is a linear operator if for any , and .
Let be a subset of
. Then is said to
preserve the set if whenever , . We say strongly
preserves if
preserves and preserves .
Lemma 4.1. Let be a
linear operator. Then the following are equivalent:
is injective;
is surjective;
is bijective.
Proof. This follows from the fact that is finite.
Since a vertex permutation merely changes the order of the vertices
(an independent labeling), we have:
Lemma 4.2. Every vertex permutation
strongly preserves:
the set of -cordial graphs;
the set of -cordial graphs; and
the set of -orientable
graphs.
Note that a linear mapping on is nonsingular if and only if the only graph mapped to the
edgeless graph is the edgeless graph. Because this semi module uses
union for addition, nonsingularity does not imply invertibility as in
vector spaces over fields.
Example 4.3. Let and suppose that for all where is the Petersen graph.
Then maps each 3-regular graph to
a 3-regular graph ( preserves
3-regular graphs). But, also maps
every non 3-regular graph to a 3-regular graph.
Thus, in view of the above example, we place more restrictions on
in order to reasonably
characterize preservers. This additional restriction is usually that
preserves some other set or
function, that is bijective, or,
as below, that strongly preserves
the set.
Lemma 4.4. Let be a
linear operator that strongly preserves
the set of -cordial graphs,
the set of -cordial graphs, or
the set of -orientable
graphs.
Then is nonsingular.
Proof. Suppose that for some . Then for any edge
graph we have that
. Let be the graph of: a) two parallel edges;
b) a four cycle; or c) three parallel edges; one edge of which is . Then, since , , a contradiction
since is not: a) -cordial; b) -cordial; or c)
-orientable while is: a) -cordial; b) -cordial: or c)
-orientable; respectively.
Thus, in each case, is
nonsingular.
Lemma 4.5. Let be an
idempotent linear operator that strongly preserves
the set of -cordial graphs for ,
the set of -cordial graphs for , or
the set of -orientable
graphs for .
Then the image of an edge graph is an edge graph.
Proof. Let be an edge graph and suppose that where is an edge graph, . Say . Let be: a) a -cordial graph; b) a
-cordial
graph; or c) a -orientable
graph; with the maximal number of edges such that and . This choice is
possible since for , the
complete graph is not -cordial or -cordial, and for
, is not -orientable. Then . Then,
, so that , a contradiction since is: a) a -cordial graph; b) a
-cordial
graph; or c) a -orientable
graph, while cannot
be: a) a -cordial
graph; b) a -cordial graph; or c) a -orientable graph; respectively,
since it has too many edges. Thus
maps edge graphs to edge graphs.
Lemma 4.6. Let be an
idempotent linear operator that strongly preserves
the set of -cordial graphs for ,
the set of -cordial graphs for , or
the set of -orientable
graphs for .
Then is bijective.
Proof. By Lemma 4.5,
maps edge graphs to edge graphs.
Thus, is not bijective if and
only if the image of two edge graphs are equal. Suppose that and are distinct edge graphs such that
. Let be: a) a -cordial graph; b) a
-cordial
graph; or c) a -orientable
graph; with the maximal number of edges such that and . Then a contradiction since is: a) a -cordial graph; b) a
-cordial
graph; or c) a -orientable
graph, while cannot be: a)
a -cordial graph;
b) a -cordial
graph; or c) a -orientable
graph; respectively, since it has too many edges.. Thus is bijective on the set of edge graphs
and since is linear is bijective on .
An interesting fact about idempotent maps on finite sets is that they
are bijective if and only if they are the identity:
Lemma 4.7. Let be a finite set and
let . If
is bijective and idempotent
then is the identity map.
Proof. Assume that is bijective. Let and suppose that . Then, (since is
idempotent). So that . Therefore since is bijective and hence, for all .
Note that because union is the addition in , any bijective map on
maps edge graphs to
edge graphs and preserves ,
the number of edges in a graph
The next theorem uses the following lemma from [2]:
Lemma 4.8. [2, Lemma 2.2] If is
bijective, preserves , and
maps 2-stars to 2-stars then is a
vertex permutation.
Theorem 4.9. Let be a linear operator. Then, strongly preserves
the set of -cordial graphs for ,
the set of -cordial graphs for , or
the set of -orientable
graphs for
if and only if is a vertex
permutation.
Proof. By Lemma 4.2, every vertex
permutation strongly preserves the set of -cordial graphs, the set
of -cordial
graphs and the set of -orientable graphs. So we now assume
that strongly preserves: a) the
set of -cordial
graphs; b)the set of -cordial graphs, or c) the set of -orientable graphs. Let where is chosen so that is idempotent. By Lemma 4.6, is bijective and hence the identity
mapping. Now, suppose that . Then so that . Since is the identity, we have . That is is injective and hence, by Lemma 4.1, is bijective. Since addition is union,
the image of any edge graph is a edge graph. Thus, for any graph, . That is, preserves .
Case 1. preserves the set of -cordial; graphs.
Let and be incident edges, so that is a 2-star (2-path) and suppose
that is a pair of non
incident (parallel) edges. Then is -cordial while its image is not, a contradiction. That is
maps 2-stars to 2-stars. By Lemma
4.8, is a vertex permutation.
Case 2. preserves the set of -cordial;
graphs.
Let and be incident edges, so that is a 2-star (2-path) and suppose
that is a pair of non
incident (parallel) edges. Let be
the edge joining the vertices of that forms a triangle. Let . Then there are edges that are adjacent to G.
There are only three possible images of since is bijective and the image of any edge
graph is an edge graph. is
either a 2-star with a non-incident edge, a three path or three mutually
parallel edges (a ). If is a 2-star with a non-incident
edge, there is only one edge added to that results in a non -cordial graph. If
is a , no edge added to results in a non -cordial graph, and
if is a three path, there are
exactly three edges which, when any one is added to would result in a non -cordial graph.
Since together with any one of
the edges adjacent to is a non -cordial graph, so
must its image be. Since we have shown that this is impossible, it
follows that maps 2-stars to
2-stars. By Lemma 4.8, is a vertex permutation.
Case 3. preserves the set of -orientable graphs.
Let and be incident edges, so that is a 2-star (2-path) and suppose
that is a pair of non
incident (parallel) edges. Let be
an edge graph such that the image of is an edge graph parallel to both and . Then, is -orientable while , being three parallel
edges, is not -orientable, a
contradiction. That is maps
2-stars to 2-stars. By Lemma 4.8, is a vertex permutation.
References:
L. Beasley. Cordial digraphs. Journal of Combinatorial Mathematics and Combinatorial Computing, 121(1):59–66, 2024. 10.61091/jcmcc121-06.
L. Beasley and N. J. Pullman. Linear operators preserving properties of graphs. Congressus Numerantium, 70:105–112, 1990.
I. Cahit. Cordial graphs—a weaker version of graceful and harmonious graphs. Ars Combinatoria, 23:201–207, 1987.