























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























































































14 Planar graphs 52
15 Kuratowski’s Theorem 56
16 Crossing number 63
17 Vertex colorings 68
18 The Four-color Theorem 72
19 Edge colorings 75
20 Strongly regular graphs 78
21 Moore graphs 80
22 Kneser graphs 86
A More topology 92
We assume that the reader is familiar with the rudiments of set theory, including the notations x ∈ X to indicate that x is an element of the set X and x /∈ X to indicate that it is not, and the use of expressions such as {x ∈ R | x > 1 }, which denotes the set of all real numbers greater than
X ∩ Y = {x | x ∈ X and x ∈ Y }, X ∪ Y = {x | x ∈ X or x ∈ Y }, and X − Y = {x | x ∈ X and x /∈ Y },
respectively. (We follow the standard mathematical convention that “or” is used inclusively, so that X ∩ Y ⊆ X ∪ Y .) The Cartesian product X × Y is the set of all ordered pairs (x, y) with x ∈ X and y ∈ Y. We deal mostly
Example 0.3. On the set R, the relation < is transitive, but neither reflex- ive nor symmetric.
Example 0.4. If n is a positive integer, the relation of congruence modulo n on the set Z of all integers is defined by a ≡ b (mod n) if n divides a − b. It is an equivalence relation, and [a] = {qn + a | q ∈ Z}. The distinct equivalence classes are [0], [1],... , [n − 1], which we shall sometimes denote just by 0, 1 ,... , n − 1. The set of equivalence classes will be denoted by Zn (a notation that annoys some algebraists of my acquaintance, who prefer Z/n or Z/nZ). We define operations of addition and multiplication on Zn by [i] + [j] = [i + j] and [i][j] = [ij]. It is left to the reader to verify that these are well-defined operations. They satisfy many of the usual laws of arithmetic (commutativity, associativity, distributivity,... ); those who have met the concept will know that they give Zn the structure of a ring. At one point we shall need the operation of addition on Z 2 × Z 2 , defined in the obvious way: (a, b) + (c, d) = (a + c, b + d).
Proposition 0.5. Let R be an equivalence relation on a set X, and x, y ∈ X. Then x ∈ [x], and [x] = [y] iff x R y.
Proof. First, x ∈ [x] because R is reflexive. Second, if [x] = [y] then y ∈ [x], so x R y. Finally, suppose x R y. If z ∈ [y] then y R z, so x R z by transitivity. This gives z ∈ [x], and so [y] ⊆ [x]. By symmetry of R, y R x, so also [x] ⊆ [y]; that is, [x] = [y].
A partition of a set X is a collection of disjoint, non-empty subsets of X whose union is X.
Proposition 0.6. Let X be a set.
(1) The collection of equivalence classes under any equivalence relation on X is a partition of X.
(2) Every partition of X is the collection of equivalence classes for a unique equivalence relation on X.
Proof. (1) Let R be an equivalence relation on X, and P the set of equiv- alence classes under R. The relation x ∈ [x] of Proposition 0.5 shows that the elements of P are non-empty and have union X. Suppose [x] and [y] are elements of P that are not disjoint. Let z ∈ [x] ∩ [y]. Then x R z and y R z, so by Propsition 0.5, [x] = [z] = [y]. Thus P is a partition of X. (2) Let P be a partition of X, and for x ∈ X let 〈x〉 be the unique element of P containing X. By Proposition 0.5, if P is the set of equivalence
Figure 1: The Petersen graph
classes for an equivalence relation R then x R y iff 〈x〉 = 〈y〉, which proves the uniqueness part. To prove existence, define a relation R by x R y if 〈x〉 = 〈y〉. It is trivial to check that R is an equivalence relation. We must show that the equivalence class [x] is equal to 〈x〉. Suppose y ∈ [x]. Then 〈x〉 = 〈y〉, and since y ∈ 〈y〉 by definition, y ∈ 〈x〉. Conversely, if y ∈ 〈x〉, then since also y ∈ 〈y〉, 〈x〉 and 〈y〉 are not disjoint. Hence 〈x〉 = 〈y〉, so x R y and y ∈ [x].
Definition 1.1. A graph G is a pair (V, E), where V is a non-empty finite set, and E is a set of unordered pairs of elements of V. The elements of V are called the vertices of G, and the elements of E are the edges of G. We always assume that V ∩ E = ∅.
We can represent a graph pictorially as in Figure 1. The dots represent the vertices, and each edge {u, v} is represented by an arc connecting the dots corresponding to the vertices u and v. We will usually write uv instead of {u, v}; of course, uv = vu. The set of vertices of a graph G may be written V (G); the number |V (G)| of vertices is the order of G, denoted by n(G) or just n. The set of edges may be written E(G); the number |E(G)| of edges is the size of G, denoted by m(G) or just m. By definition, n > 0, but m = 0 is allowed. If n = 1 (and so m = 0), G is trivial. In general, 0 ≤ m ≤
(n 2
= n(n − 1)/2. If m = 0 we have an empty graph, while if m =
(n 2
we have a complete graph; see Figure 2 for an example. Vertices u and v of a graph G are adjacent if uv ∈ E(G); an edge e = uv is incident with the vertices u and v, and distinct edges e and f are adjacent if there is a vertex incident with both of them. Vertices u and v are independent if
G 1 G 2 G 3
G^ ¯ 1 G¯ 2 G¯ 3
Figure 3: The graphs of order 4 and size 3
4, 11 and 34, respectively. (For order 5, particularly, you may want to use the following definition to reduce the tedium.)
Definition 1.3. The complement of a graph G is the graph G¯ with V ( G¯) = V (G) in which, for distinct vertices u and v, uv ∈ E( G¯) iff uv ∈/ E(G). Put another way, if K is the complete graph with vertex set V (G), E( G¯) = E(K) − E(G).
For example, the complement K¯n of the complete graph on n vertices is the empty graph on n vertices. If G has order n and size m then G¯ has size
(n 2
− m. A graph is self-complementary if G ∼= G¯. If this is so we must have 2m =
(n 2
, so
(n 2
is even, which happens iff n ≡ 0 or 1 (mod 4). In fact, for any such n there exist self-complementary graphs of order n. For n = 4, the size must be 3. In Figure 3, the top row shows all graphs of order 4 and size 3, while the bottom row shows their complements. We see that G 1 and G 3 are (up to isomorphism) complements of each other, while G 2 is self-complementary. The degree of a vertex v of a graph G is the number of vertices adjacent to v. It is denoted by degG v or just deg v. With this definition we can finally state a theorem.
Theorem 1.4. Let G be a graph of size m. Then
v∈V (G) deg^ v^ = 2m.
Proof. We can count the number p of pairs (v, e) where v is a vertex of the edge e in two ways. First, there are m edges, each with two vertices, so p = 2 m. Second, the vertex v is incident to deg v edges, so p =
v∈V (G) deg^ v.
A vertex is called even or odd according as its degree is even or odd.
Corollary 1.5. Any graph contains an even number of odd vertices.
The minmum degree of the vertices of a graph is denoted by δ(G), and the maximum by ∆(G). Clearly 0 ≤ δ(G) ≤ ∆(G) ≤ n(G) − 1. A vertex of degree 0 is an isolated vertex, while one of degree 1 is an end-vertex. If δ(G) = ∆(G) then G is regular ; if the common value is d, G is d-regular or regular of degree d. A 3-regular graph is also called a cubic graph. The complete graph Kn is (n − 1)-regular, and the Petersen graph of Figure 1 is cubic. For a regular graph, any two of the order n, the size m and the degree d determine the third by the equation 2m = nd. A subgraph of a graph G is a graph H with V (H) ⊆ V (G) and E(H) ⊆ E(G). We write H ⊆ G. If U is any proper subset of V (G), G − U is the subgraph obtained by deleting all vertices of U and all edges with at least one vertex in U. When U = {u}, we abbreviate G − {u} to G − u. Similarly, if F is a subset of E(G), G−F is the subgraph obtained by deleting the edges of F , and G−{e} is written as G−e. (This notation is logically indefensible, since an edge is a set of vertices. Nevertheless, for an edge e = uv = {u, v}, we adopt the convention that G − e and G − uv denote G with just an edge deleted, and G − {u, v} denotes G with two vertices and all incident edges deleted.) Note that V (G − F ) = V (G), and F = E(G) is allowed, with G − E(G) being the empty graph on V (G). A spanning subgraph of G is a subgraph of the same order (i.e., containing all the vertices of G). These are precisely the subgraphs of the form G − F for F ⊆ E(G). If u and v are independent vertices of G and f = uv, the graph G + f has vertex set V (G) and edge set E(G) ∪ {f }. If U is a non-empty set of vertices of the graph G, the subgraph 〈U 〉 induced by U is the subgraph with vertex set U and edge set consisting of all edges of G with both vertices in U. A vertex-induced subgraph (or just an induced subgraph) is a subgraph of this form. If F is a non-empty set of edges of G, the subgraph 〈F 〉 induced by F is the subgraph with vertex set all vertices of edges of F and edge set F. An edge-induced subgraph is a subgraph of this form.
Theorem 1.6 (K¨onig [22]). Let G be a graph and d an integer with d ≥ ∆(G). Then there is a d-regular graph containing G as an induced subgraph.
Proof. The proof is by induction on d − δ(G). If this is 0, G is d-regular and there is nothing to do. If d > δ(G), let G′^ be another copy of G and form H by adding edges joining each vertex of G of degree δ(G) to the corresponding vertex of G′. Then H contains G as an induced subgraph, and has δ(H) = δ(G) + 1 and ∆(H) ≤ d. The result follows.
The graph constructed in this proof is generally not of minimal order;
Let G 1 and G 2 be graphs. Their union G 1 ∪ G 2 is the graph with vertex set V (G 1 )∪V (G 2 ) and edge set E(G 1 )∪E(G 2 ). Their disjoint union G 1 ⊔G 2 is any graph of the form G′ 1 ∪ G 2 where G′ 1 ∼= G 1 and V (G′ 1 ) is disjoint from V (G 2 ); it is well-defined up to isomorphism. The disjoint union of k copies of a graph G is denoted kG. The join of G 1 and G 2 is the graph G 1 ∗ G 2 obtained from G 1 ⊔ G 2 by adding an edge v 1 v 2 for each vertex v 1 of G 1 and v 2 of G 2 ; see Figure 5. Note that G¯ 1 ∗ G¯ 2 ∼= G 1 ⊔ G 2. The complete bipartite graph Kr,s can be described as either K¯r ∗ K¯s or Kr ⊔ Ks. The Cartesian product G 1 × G 2 has vertex set V (G 1 ) × V (G 2 ), and there is an edge with vertices (u 1 , u 2 ) and (v 1 , v 2 ) iff either u 1 v 1 ∈ E(G 1 ) and u 2 = v 2 , or u 1 = v 1 and u 2 v 2 ∈ E(G 2 ). Figure 6 shows the product of the graphs G 1 and G 2 of Figure 5. Two classes of graphs we shall meet frequently are the paths and cycles. The path Pn (n ≥ 1) of order n has vertices v 1 ,... , vn and edges vivi+ for 1 ≤ i < n. Of course, P 1 ∼= K 1 and P 2 ∼= K 2. For n ≥ 3, the cycle Cn is obtained from Pn by adding the edge vnv 1. It can be represented as a regular n-gon. For small values of n we refer to Cn as a triangle, quadrilateral, pentagon,.... Another special class of graphs consists of the cubes. The n-cube Qn (n ≥ 0) is defined recursively by setting Q 0 = K 1 and Qn+1 = Qn × K 2. It may also be defined as the graph with vertices all sequences of zeroes and ones of length n, with two sequences being adjacent iff they differ in exactly one place.
Remark. The definition of a graph is mutable. A variant is that a graph G consists of disjoint sets V (G) of vertices and edges E(G), together with a relation of incidence between vertices and edges such that every edge is incident with either one or two vertices. (Some authors also allow edges incident with no vertices; well, I have, at times.) Edges incident with only one vertex are loops, while distinct edges incident with the same vertices are parallel. We shall refer to such objects as multigraphs, and hardly ever men- tion them again. Obviously every graph determines a multigraph. Further, every multigraph may be converted to a graph by subdividing its edges (see §15) while preserving most of its interesting properties.
Exercises for § 1
1.1. Determine all non-isomorphic graphs of order at most 5.
1.2. Show that in any non-trivial graph there are two distinct vertices with the same degree.
1.3. Let G be a self-complementary graph, and let G′^ be obtained from G ⊔ P 4 by adding edges from every vertex of G to the two end-vertices of P 4. Show that G′^ is self-complementary, and deduce that there are self complementary graphs of order n for every positive integer n with n ≡ 0 or 1 (mod 4).
1.4. Let G be a self-complementary graph of order n ≡ 1 (mod 4). Prove that G has an odd number of vertices of degree (n − 1)/2.
1.5. Give an example of two non-isomorphic regular graphs of order 6 and degree 3. [Hint: examine the figures in this section.]
1.6. For any integer k ≥ 2, show that there are k non-isomorphic regular graphs, all of the same order and degree. [Hint: the disjoint union of regular graphs of the same degree is regular.]
1.7. Show that the minimum order of a 3-regular graph containing the graph G below as an induced subgraph is 6. Also draw the 3-regular graph constructed from G as in the proof of Theorem 1.6.
Let G be a graph with vertices v 1 ,... , vn, and set di = deg vi. The sequence (d 1 ,... , dn) is called a degree sequence of G. A sequence (d 1 ,... , dn) of integers is graphical if it is a degree sequence of some graph. Necessary conditions for the sequence to be graphical are that 0 ≤ di ≤ n − 1 for all i and (by Theorem 1.4) that d 1 + · · · + dn is even. These are not sufficient; it is easy to see that (3, 3 , 3 , 1) is not graphical.
Theorem 2.1 (Havel [17], Hakimi [15]). Let d = (d 1 ,... , dn) be a sequence of integers with n ≥ 2 , d 1 ≥ · · · ≥ dn ≥ 0 and d 1 > 0. Then d is graphical iff d 1 ≤ n − 1 and the sequence
d′^ = (d 2 − 1 ,... , dd 1 +1 − 1 , dd 1 +2,... , dn)
is graphical.
For 1 ≤ i ≤ k there are di such pairs, so the total number of pairs is
∑k i=1 di. The number of such pairs with j ≤ k is at most k(k − 1), and for each j > k the number of such pairs is at most min{dj , k}, so (EG) holds. For the converse, we prove the stronger result that if
∑n i=1 di^ is even and (EG) holds for all k with 1 ≤ k ≤ dk then G is graphical. (It is easy to see that these cases of (EG) imply the remainder, but we do not need this.) If n = 2, the only such sequences are (0, 0) and (1, 1), which are graphical. Suppose then that n > 2 and the result holds for sequences of length n − 1. If d 1 = 0 then d is the degree sequence of an empty graph. Suppose that d 1 > 0. The case k = 1 of (EG) is d 1 ≤
∑n i=2 min{di,^1 }, and the right-hand side of this inequality is the number of i ≥ 2 with di 6 = 0. Thus dˆ = dd 1 +1 is positive. Let a and c be the least and greatest elements of the set of those i ∈ { 2 ,... , n} with di = dˆ. We have a ≤ d 1 + 1 ≤ c, so setting b = a + c − d 1 − 1 we have a ≤ b ≤ c. Partition the set { 2 ,... , n} into R = {i | 2 ≤ i < a or b ≤ i ≤ c} and S = {i | a ≤ i < b or c < i ≤ n}, and note that |R| = d 1. For 2 ≤ i ≤ n, let d′ i = di − 1 if i ∈ R and d∑′ i = di if i ∈ S. The sequence d′^ = (d′ 2 ,... , d′ n) has d′ 2 ≥ · · · ≥ d′ n ≥ 0 and n i=2 d ′ i =^
∑n i=1 di^ −^2 d^1. (It is just the sequence of Theorem 2.1 arranged in descending order.) We show that it satisfies the inequalities corresponding to (EG), namely
∑^ k
i=
d′ i ≤ (k − 1)(k − 2) +
∑^ n
i=k+
min{d′ i, k − 1 },
for 1 ≤ k − 1 ≤ d′ k. Once this has been done, it will follow from the inductive hypothesis that d′^ is graphical, and then that d is graphical as in the earlier proof. For i ≥ c we have
d′ i ≤ d′ c = dˆ − 1 ≤ d 1 − 1 ≤ c − 2 ≤ i − 2 ,
so k − 1 ≤ d′ k implies k < c. Suppose first that k < a. If k ≤ dˆ, then min{d′ i, k − 1 } = k − 1 = min{di, k − 1 } for i ∈ R, while clearly min{d′ i, k − 1 } = min{di, k − 1 } for i ∈ S. Hence
∑^ k
i=
d′ i =
∑^ k
i=
di − k + 1 ≤
k∑− 1
i=
di − k + 1
≤ (k − 1)(k − 2) +
∑^ n
i=k
min{di, k − 1 } − k + 1
= (k − 1)(k − 2) +
∑^ n
i=k+
min{d′ i, k − 1 }.
If k ≥ dˆ + 1, then min{d′ i, k − 1 } = di = min{di, k} for i ∈ S, and of course min{d′ i, k − 1 } = min{di, k} − 1 for i ∈ R. Therefore
∑^ k
i=
d′ i =
∑^ k
i=
di − d 1 − k + 1
≤ k(k − 1) +
∑^ n
i=k+
min{di, k} − d 1 − k + 1
= k(k − 1) +
∑^ n
i=k+
min{d′ i, k − 1 } + (d 1 − k + 1) − d 1 − k + 1
= (k − 1)(k − 2) +
∑^ n
i=k+
min{d′ i, k − 1 }.
For the rest of the proof, we assume that a ≤ k. We distinguish three cases.
Case 1. a ≤ k < b and k ≤ dˆ.
Case 2. a ≤ k < b and k = dˆ + 1.
Case 3. b ≤ k ≤ dˆ.
We have
∑^ k
i=
d′ i ≤ (a − 2)(d 1 − 1) +
∑^ k
i=a
d′ i
= (a − 2)(d 1 − 1) + (k − a + 1) dˆ − xk,
where xk is 0 in cases 1 and 2, and k − b + 1 in case 3. Also,
(k − 1)(k − 2) +
∑^ n
i=k+
min{d′ i, k − 1 }
≥ (k − 1)(k − 2) +
∑^ c
i=k+
min{d′ i, k − 1 }
= (k − 1)(k − 2) + (c − k)(k − 1) − yk = (k − 1)(c − 2) − yk,
u 0 = ul, W is a closed walk; otherwise it is open. A trail is a walk with no repeated edges (uiui+1 6 = uj uj+1 for i 6 = j). A path is a walk with no repeated vertices (ui 6 = uj for i 6 = j). Every path is a trail, and for any vertex u the trivial u-u walk (u) is a path. A circuit is a non-trivial closed trail, and a cycle is a closed walk (u 0 , u 1 ,... , ul) of length l ≥ 3 such that ui 6 = uj for 1 ≤ i < j ≤ l. Every cycle is a circuit, and every circuit has length at least 3.
Note that the subgraph induced by the edges of a path in G of length l is Pl+1, and that induced by the edges of a cycle of length l is Cl. We shall often confuse a walk (trail, path, circuit, cycle) with the subgraph induced by its edges. If W is a u-v walk, we refer to u and v as the endpoints of W , and when W is a path any other vertices on W are called internal vertices of W. We say that a walk (u 0 , u 1 ,... , ul) contains a walk (v 0 , v 1 ,... , vk) if there are integers 0 ≤ i 0 < i 1 < · · · < ik ≤ l such that vj = uij for 0 ≤ j ≤ k.
Theorem 3.2. Any u-v walk in a graph G contains a u-v path.
Proof. The proof is by induction on the length. Suppose
W = (u = u 0 , u 1 ,... , ul = v)
is a u-v walk, and assume inductively that every u-v walk (if any) of length less than l contains a u-v path. If W is a path, there is nothing to do. Otherwise, there exist i and j with 0 ≤ i < j ≤ l and ui = uj. Now W contains the u-v walk (u 0 , u 1 ,... , ui, uj+1,... , ul) of length less than l, which in turn contains a u-v path.
Definition 3.3. We say that vertices u and v of a graph G are connected if there is a u-v path in G, and in this case we write u ∼ v. The graph G is connected if any two of its vertices are connected.
Note that by Theorem 3.2, u and v are connected iff there is a u-v walk. If W = (u 0 , u 1 ,... , ul) is a walk, we denote by W r^ the reverse walk (ul, ul− 1 ,... , u 0 ). If W ′^ = (v 0 , v 1 ,... , vk) is another walk with v 0 = ul we denote by W · W ′^ the walk (u 0 , u 1 ,... , ul, v 1 ,... , vk).
Lemma 3.4. Let G be a graph. The relation of Definition 3.3 is an equiv- alence relation on V (G).
Proof. Let u, v and w be vertices of G. The trivial u-u path shows that u ∼ u. If u ∼ v, let P be a u-v path. Then P r^ is a v-u path, so v ∼ u. If also v ∼ w, let Q be a v-w path. Then P · Q is a u-w walk, so u ∼ w.
The subgraphs of G induced by the equivalence classes for the relation ∼ are called the components of G. Each component is connected, and every connected subgraph of G is contained in a component. The number of components is denoted by k(G). Thus k(G) = 1 iff G is connected.
Definition 3.5. Let u and v be vertices of a connected graph G. The distance from u to v, d(u, v) = dG(u, v), is the minimum of the lengths of all paths from u to v in G. A u-v path of length d(u, v) is a u-v geodesic.
By Theorem 3.2, d(u, v) is also the minimum of the lengths of all walks from u to v. In a disconnected graph, we may define d(u, v) as above for vertices in the same component, and set it to ∞ for vertices in different components.
Theorem 3.6. Let u, v and w be vertices of a connected graph G.
(1) d(u, u) = 0 and d(u, v) > 0 if u 6 = v.
(2) d(u, v) = d(v, u).
(3) d(u, w) ≤ d(u, v) + d(v, w).
Proof. (1) is obvious. The other parts follow by examining the lengths of the walks used to show symmetry and transitivity in the proof of Lemma 3.4.
A cycle in a graph is called odd or even according as its length is odd or even.
Theorem 3.7. A non-trivial graph G is bipartite iff it has no odd cycles.
Proof. We may assume that G is connected, since a non-trivial graph is bipartite iff all its non-trivial components are bipartite. Suppose first that G is bipartite, with partite sets V 1 and V 2 , and let (u 0 , u 1 ,... , uk) be a cycle in G. Without loss of generality, u 0 ∈ V 1. It follows by an easy induction that ui ∈ V 1 if i is even and ui ∈ V 2 if i is odd. Since uk = u 0 ∈ V 1 , k is even. Suppose conversely that G has no odd cycles, and pick a vertex w. Let V 1 be the set of those u ∈ V (G) with d(u, w) even, and V 2 the set of those with d(u, w) odd. We have w ∈ V 1 , and since G is connected and non- trivial, there is a vertex adjacent to w, and therefore in V 2. Thus {V 1 , V 2 } is a partition of V (G). We show that G is bipartitite with respect to this partition. Suppose for a contradiction that u and v are adjacent vertices in
Proof. Form a graph H by adding to G four new vertices v 1 , v 2 , w 1 and w 2 , and edges uvi and viwi for u ∈ V (G) and i = 1 or 2. Then H is connected, eH (u) = 2 for u ∈ V (G), eH (v 1 ) = eH (v 2 ) = 3 and eH (w 1 ) = eH (w 2 ) = 4, so G = Cen H.
Theorem 3.14 (Bielak and Syslo [3]). A graph G is the periphery of some connected graph iff G is complete or no vertex of G has eccentricity 1.
If G is not connected, the eccentricity of any vertex is infinite, so the theorem asserts that G is the periphery of some connected graph.
Proof. A complete graph is its own periphery, so suppose G is not complete. Suppose first that there is a connected graph H with G = Per H. Then H is also not complete, so diam H ≥ 2. For u ∈ V (G), eG(u) ≥ eH (u) = diam H, so no vertex of G has eccentricity 1. Conversely, if no vertex of G has eccentricity 1, set H = K 1 ∗G, with new vertex v. For u ∈ V (G), eH (u) = 2, while eH (v) = 1, so G = Per H.
Definition 3.15. If u is a vertex of the connected graph G, the total distance td(u) = tdG(u) is defined by td(u) =
v∈V (G) d(u, v). A^ median vertex^ of G is a vertex with minimum total distance, and the median of G is the subgraph Med G induced by the median vertices.
Theorem 3.16 (Hendry [18]). For any graphs G 1 and G 2 , there is a con- nected graph H with Cen H ∼= G 1 and Med H ∼= G 2.
Proof. We may assume that V (G 1 ) and V (G 2 ) are disjoint. For i = 1 or 2, set ni = n(Gi) and δi = δ(Gi). Let a and b be positive integers with a > (n 2 − n 1 − δ 2 − 3)/2 and b > 2 a + n 1 + n 2 − δ 2. Form H by adding to G 1 ∪ G 2 vertices xi for 1 ≤ i ≤ a + 2, yi for 1 ≤ i ≤ a and zi for 1 ≤ i ≤ b, and edges
xixi+1 for 1 ≤ i < a + 2; yiyi+1 for 1 ≤ i < a; zizj for 1 ≤ i < j ≤ b; u 1 x 1 and u 1 y 1 for u 1 ∈ V (G 1 ); and u 2 ya and u 2 zi for u 2 ∈ V (G 2 ) and 1 ≤ i ≤ b − degG 2 u 2 + δ 2.
In what follows, d, e and td denote distance, eccentricity and total distance in H. For distinct vertices ui and u′ i of Gi (i = 1 or 2) we have d(ui, u′ i) = 1 if uiu′ i ∈ E(Gi) and d(ui, u′ i) = 2 otherwise. Let u 2 be a vertex of G 2.
Since b − degG 2 u 2 + δ 2 > 0, u 2 is adjacent to z 1 , and so d(u 2 , zi) ≤ 2 for 1 ≤ i ≤ b. Since b − degG 2 u 2 + δ 2 ≤ b, the number of zi with d(u 2 , zi) = 1 is b − degG 2 u 2 + δ 2. The remaining distances in H are given below; for those involving a vertex zi, note that zi is adjacent to at least one vertex of G 2 , namely a vertex of minimum degree in G 2. We have
d(xi, xj ) = j − i for 1 ≤ i < j ≤ a + 2; d(xi, u 1 ) = i for 1 ≤ i ≤ a + 2 and u 1 ∈ V (G 1 ); d(xi, yj ) = i + j for 1 ≤ i ≤ a + 2 and 1 ≤ j ≤ a; d(xi, u 2 ) = i + a + 1 for 1 ≤ i ≤ a + 2 and u 2 ∈ V (G 2 ); d(xi, zj ) = i + a + 2 for 1 ≤ i ≤ a + 2 and 1 ≤ j ≤ b; d(u 1 , yi) = i for u 1 ∈ V (G 1 ) and 1 ≤ i ≤ a; d(u 1 , u 2 ) = a + 1 for u 1 ∈ V (G 1 ) and u 2 ∈ V (G 2 ); d(u 1 , zi) = a + 2 for u 1 ∈ V (G 1 ) and 1 ≤ i ≤ b; d(yi, yj ) = j − i for 1 ≤ i < j ≤ a; d(yi, u 2 ) = a − i + 1 for 1 ≤ i ≤ a and u 2 ∈ V (G 2 ); d(yi, zj ) = a − i + 2 for 1 ≤ i ≤ a and 1 ≤ j ≤ b; and d(zi, zj ) = 1 for 1 ≤ i < j ≤ b.
Hence
e(xi) = i + a + 2 for 1 ≤ i ≤ a + 2; e(u 1 ) = a + 2 for u 1 ∈ V (G 1 ); e(yi) = i + a + 2 for 1 ≤ i ≤ a; e(u 2 ) = 2a + 3 for u 2 ∈ V (G 2 ); and e(zi) = 2a + 4 for 1 ≤ i ≤ b,
so Cen H = G 1. Further,
td(xi) =
∑^ i−^1
j=
j +
a−∑i+
j=
j + in 1 +
i∑+a
j=i+
j + (i + a + 1)n 2 + (i + a + 2)b
for 1 ≤ i ≤ a + 2;
td(u 1 ) ≥
a∑+
j=
j + n 1 − 1 +
∑^ a
j=
j + (a + 1)n 2 + (a + 2)b