Graph Theory-P.Erdos
Graph Theory-P.Erdos
Graph Theory-P.Erdos
§ 0 . Introduction
Let E(G.) denote the number of edges of Gn . Let H d (n, k) denote the set of all
graphs Gn for which V (G n) = k and the diameter D (Gn) of which is --d,
(k=1, 2, . . ., n-1 ; d=2, 3, . . ., n-1) .
In the present paper we shall investigate the quantity
(0 .2) F, (n, k) = min E(Gn) .
G„ E Ha(n, k)
Thus we want to determine the minimal number N such that there exists a graph
having n vertices, N edges and diameter --d and the maximum of the valencies
of the vertices of the graph is equal to k .
To help the understanding of the problem let us consider
the following interpretation . Let be given in a country n airports ;
suppose we want to plan a network of direct flights between these
airports so that the maximal number of airports to which a
given airport can be connected by a direct flight should be equal
to k (i .e . the maximum of the capacities of the airports is pres-
cribed), further it should be possible to fly from every airport
to any other by changing the plane at most d-1 times ; what is OAbkbbk
the minimal number of flights by which such a plan can be
realized? For instance, if n = 7, k = 3, d= 2 we have F2 (7, 3) = 9 Fig. I
and the extremal graph is shown by Fig. 1 .
The problem of determining Fd (n, k) has been proposed and discussed recently
by two of the authors (see [1]) . In § 1 we give a short summary of the results of the
paper [1], while in § 2 and 3 we give some new results which go beyond those of
[1] . Incidentally we solve a long-standing problem about the maximal number
of edges of a graph not containing a cycle of length 4 .
In § 4 we mention some unsolved problems .
Let us mention that our problem can be formulated also in terms of 0 -1
matrices as follows : Let M=(a il) be a symmetrical n by n zero-one matrix such
T
Mathematical Institute of the Hungarian Academy of Sciences .
2
Eötvös L . University, Budapest.
Md (n, k) = min
Clearly
(0 .3) Md (n, k) = 2 Fd (n, k) + n .
This formulation shows the connection of our problem with non-linear programming .
We give for the case d=2 a third formulation of our problem which displays
its connection with the theory of block designs .
Let be given a sequence A,, A 2 , . . ., A n of subsets of the elements 1, 2, . . ., n
such that if j E A L then i E A j . Let us suppose that denoting by JAI the cardinal number
of the set A, we have max A j I= k . Let us suppose that for any i (I -_ i -_ n) and
1-~j~n
any j i such that j J A L there is a set A,, which contains both i and j (this is equivalent
by our supposition of symmetry to the statement that the sets A i and Aj are not
disjoint) . The problem is to determine
It is easy to see that if there exists a graph G n with V(G.)=k and diameter
d, then
(k-1) d -1
(1 . 1) n - I+k
k-2
(1 . 1) can be proved as follows : if V(GJ=k the number of points which can be
reached from a given point, say, P 1 by an edge is --k ; the number of points which
can be reached from P l by a path of length 2 is k(k-1) and finally the number
of points which can be reached by a path of length d is -k(k-1)d-1 . Thus if the
graph has diameter --d we have
(n-1)-k(1+(k-1)+(k-1)2+ . . .+(k-1)d-1) .
This proves (1 . 1) . If both n and k are odd, then Gn must contain at least one
point of valency --k-1 (because the number of points of odd valency cannot be
odd) ; thus in this case we get
(k _k l) d2_
(1 .2) n--1+(k-1) I .
Note that for the graph shown by Fig . 1, equality stands in (1 . 2) . For the graph
shown on Fig . 2 (the so-called Petersen-graph) equality stands in (1 . 1) with n =10,
k=3, d=2 .
F2 (n,:, k,) k; - 1
(1 . 5) lim
,-- n,(n,- 1) 2'
PROOF OF THEOREM 1 . Let GF(P) be the Galois field with P elements . Let
us represent the points of the finite plane geometry .PG(P, 2) by triples (a, b, c)
where a, b, c are elements of GF(P), not all three equal to 0, and (~a, ),b, ~c) with
E GF(P), z 0 represents the same point as (a, b, c) . The number of different
points of PG(P, 2) is P 2 +P-{-1 . A straight line in PG(P, 2) is the set of all points
(x, y, z) which satisfy the equation ax + by + cz = 0 ; we denote this line by [a, b, c] .
The point (a, b, c) and the line [a, b, c] are clearly conjugate elements with respect
to the conic x 2 --y2 á-z 2 =0 . As well known there are P+ 1 points on each line,
any two different lines have exactly one point in common and through any two
given points there is exactly one straight line . Now we define the mapping T which
maps the point A = (a, b, c) into the line a = [a, b, c] and conversely. We write
TA =a, Ta=A . This mapping has evidently the properties : if the point B lies on
the line a = TA then the point A lies on the line (3 = TB ; if C is the point of inter-
section of the lines TA and TB then TC is identical with the line passing through
the points A and B ; A = (a, b, c) is on TA if and only if a 2 + b 2 + c 2 = 0, i .e . if A
lies on the conic x 2 +y 2 +z 2 =0 . Now let us define a graph G„ (n=P 2 +P+1)
as follows : the vertices of Gn are the points of PG(P, 2) ; the vertices A= (a, b, c)
and A'= (a', b', c') are joined in G n by an edge if and only if A' is lying on TA (and
thus A is lying on TA') . Clearly a vertex A in Gn has the valency P or P+ 1 according
to whether A is on the conic x 2 +y 2 +z2 = 0 or not . V Thus
Finally the diameter of G,, is equal to 2 . As a matter of fact any two points
A and B can be joined by the path ACB where C is the point of intersection of the
lines TA and TB . Besides this A and B can be joined by a single edge if A lies on TB .
But the point C such that the edges AC and BC both belong to Gn is in any case
unique ; thus Gn does not contain any cycle of length 4 .
Thus our Theorem is proved .
We deduce from Theorem 1 the following corollaries .
F2 (nk , k) k - 1
(1 .7) fim inf
k-- nk(nk - 1) 2
" If P is prime, there are P+1 points on the conic and thus
E(G„)
+ )z 1
= 2
~ 2 11112 if n~nn .
PROOF OF COROLLARY 1 . By (1 . 3)
(i . 8) F2 (n, k) k , 1
n(n-1) - 2
further if k = P + 1, n k = P 2 + P + 1, by Theorem 1
(1 .9) F2 (P 2 -I p+1, P+1)~ 1 (P+1)(P2+P+1) ;
thus in this case
F2 (nk , k) k
(1 . 10) nk (nk -1) 21 I+- 1 ,
this proves our assertion .
Theorem 1 enables us also to solve - at least asymptotically - a problem
which was raised by one of us 27 years ago (see [2]) .Y
Let C„ denote the class of graphs having n vertices and containing no cycle
of order 4. Put
(1 . 11) µ(n) = max E(G„) .
G„ E C„
The problem is to determine the value of µ(n) . From Theorem 1 we deduce the
following
COROLLARY 2 . We have
lim µn312
1
(1 . 12) n = 2
n--
PROOF OF COROLLARY 2 . It follows clearly from Theorem 1 that if P is a
prime power, then putting n = P 2 + P + 1
(n3/2 - n) .
(1 .13) µ (n) - 2
It is possible that for these n the graph of Theorem 1 is extremal but we can-
not prove this . Clearly µ(n) is an increasing function of n, and thus it follows that
for any n we have
(1 .14) u(n)
Z [P2+P+1)312-(P2+P-{-1)]
where P is the largest prime power such that p2 + P + 1-_ n . Now evidently for
n--n 1 one can choose a prime p so that
n
(1 .15) vn - log p } n -1
n
After having written this paper we have been informed by W . G . BROWN that independ-
ently of us he has proved (1 .12), in the same way as we did . His paper will be published in the Bul-
letin of the Canadian Mathematical Society .
(1 .16) n3/2
µ(n) - 2
( 1- l0g3 n )
and thus
µ(n) 1
(1 .17) liminf
n-- n3 2 2
On the other hand it is easy to see (this follows also from the results of 1 . REIMAN
in [3]) that
(1 .14)
í n) .
Z „ (v1 2
Now we have
n
(1 .20)
and thus
(1 .21) 2n (J 2n / 2 ) n3 .
n
As clearly fv j = 2E(G„ ), we have
(1 .22) 4E 2 (G n ) - 2nE(G „) = n 3
which implies
n 3/2 1 n
(1 .23) E(Gn) - 1
2 4n + 4'
Thus
li(n) 1 1 1
(1 .24)
n312 - 2 4n + 4 .~n .
Let us note that weaker results have been obtained previously by E . KLEIN
µ(n)
(see [2]) and 1 . REIMANN [3], who proved lim inf 1 REIMANN's extremal
n-- n 2 j 2,
graph does not contain triangles either ; it is possible that among such graphs it is
optimal .
Note that for the pairs (n j , kj) for which according to Corollary I one has
(1 .25) lim
k
F2 (np j)k; - I
;_,_ nj (n j -1) 2
one has kj -Vn j . It was shown in [1] that there exists another sequence of pairs
(k,, n j ) such that
, k'-)kj
(1 .26) Jim Fz(n' = 1
j _,_ nj (nj -1)
a
but for this sequence of pairs one has lim ~~' _ + ~ .
nj
It remains an open question what is the value of the function g(c) defined by
F2 (n, k) k
(1 .27) g(c) = liminf
k2,n, n(n- 1)
n-~
for I < c +- ; we know only that g(c) is nondecreasing, z - ~ g(c) and lim g(c) ; 1 .
Fig. 4
Fig . 5
n 3 21
V(G„)=k=n-1, 15<1-
Fig . 6 Fig. 7
Note that all vertices of G„ except P,, P2 and P 3 have the valency 2, further
v(P,)=n-1, v(P2)=n-1, v(P3 )=21-2 and by supposition 21-2-n-1 . Thus
V(Gn )=n-1 . Clearly G„ has diameter 2 and the number of edges of Gn is
= 2(n-/)+21 -2+2(n-3)
E(G„) = 2n-4 .
2
n + 21
We prove that for any G n with n ~ 13, V(G„) =n - l 5 3 and diameter
--
2 one has E(Gn) 2n - 4 .
n
2 e22 31
(x+2(c,-x)+2(c2-Y)+Y(c2-1)+x) . = cl+c2+Y( ' c l +c 2 ,
because, as we have shown, c 2 --3
Thus we have shown that E(G„) 2n -4 and the proof of Theorem 2 is complete .
Note that the restriction n =13 in Theorem 2 is necessary, because for n < 13
2-2
2n
there is no value of k between 3 and n - 5 .
2n 2
As regards the value of F2 (n, k) for k < 3 - - we can show that for n' 15
n +I1 _ k ` 5n9 3
4n - 2k-13 for
We give in what follows the extremal graphs for these 3 cases . That these are really
extremal can be proved in a way similar to the proof of Theorem 2, therefore we
leave the details to the reader .
The graph has four points of high degree ; let us denote them by A, B, C, D
and four groups of points .
There is a group denoted by AB, the points of which are joined to A and to B .
The group contains 2k-n points . In the group BCD (connected with B, C and D)
there are n -k -1 points . In the group AC (whose points are connected with A and C)
n-k-3
2
there are points ; finally in the group AD (the points of which are con-
--
nected with A and D) there are n - k - 3 - n k 3 2 points . Further the graph
contains the edges AB, AC, AD . The points A and B have the degree k. The whole
graph has 3n - k - 6 edges .
5n9 3 k < 3n5 3
THEXRMALGPFO
n 21 k< 5n9 3
THEXRMALGPFO
n +II
For k < we cannot determin ; Fz (n, k) c xactly . However, we can get
a fairly good upper bound by constructing graphs of diameter 2 by the following
( r) of the points of a graph G„ into r groups of
principles . We divide all but
2
approximately the same size . We connect the points of each pair of groups withh
one of the remaining points, and connect as many of these point3 with each other
z ze 2
ae P
Fig. 8
3
2
(3 .1) Fd (n, k) I 1-
kn
PROOF OF THEOREM 3 . Let us put
s=n 1- 2
we have
. nz
(3 .5) E(G „) kd _1
b(1 - b)
(3 .6) s ::- n 1 -
2
~1 -
2 ] ~_d r of the vertices Y,, or not . In the first case we have
z
(3 .7) E(G „) -- s 1- 2 1 - ( 1 -b) kd _, .
kd
It follows from (3 . 8) and (3 . 9) that the total number of vertices which can be reached
fromX i by a path of length -d, can not exceed n 1- 66
which is --n-2 if n
12
,
and this is true if n - l k 64 ; thus we arrived to a contradiction and this proves
our theorem .
2
To show that the order of magnitude
of the lower estimate of F3 (n, k)
k2
is best possible, consider the following graph G„ : Take a complete graph G r having
r vertices, and connect each vertex of G r with r -1 new points . Thus we obtain
a graph G„ with r (r -1) -} r = r 2 = n vertices . Clearly one has k = V (G„) = 2r - 2,
z
D(G„)=3 and E(G„)=2 r(r-1) . Thus E(G„)-k .
2
In this example k=2(~n -1) ; by slightly modifying this example we obtain that
k2z
F3 (n, k) < (c + 1)2 +
1
if k - en where 0 < c < 1 .
2,
-2 ~') s2+ (SI + ~
E(G") 2 (1)
22 2
further v(Pgij)=s-1 and
l
/ 2
v (Q ghi) = s fi l -1 2 1
Z
and thus V(G,)=s+l+ -2 . Thus we obtain
2
Z
+~1)S,S+l+(1+])/(181)(1-2)
F,Ils 21<2[jS2+IjISI+ s.
2 - 2 2
By other words by choosing for Z an arbitrary fixed natural number and for s tending
to + -, we obtain an infinite sequence of pairs n, k such that
l'l a
k - and F3 (n, k) /(1-1) .
4 k2
Thus for arbitrary small a, :~- 0 there exists an infinity of pairs n, k such that k - ;L~n and
F3 (n, k) < 5 n
4a4 * k22 .
Let us study now the behaviour of F3 (n, k) for large values of k . Clearly
F3 (n, k) = n -1 if k - because the graph Gn shown on Fig . 9 has diameter 3
2
V(Gj = k and Gn is a tree, thus it has n -1 edges ; this result is best possible because
a connected graph Gn cannot have less than n-1 edges .
Fig . 9
PROOF OF THEOREM 4 . The e ase s= 1 has been settled above . Let us consider
first the case s=2 . Suppose Gn wou'd be a tree of diameter 3 and V(G .)=k - 2 ,
and let P i be an endpoint of G n (such a point exists as every tree has at least two
endpoints) . Let P 2 denote the single point connected with P i by an edge, and let
P3, . . ., P, be all the other points connected with P z ; as V(G„)=k we have l--k+1 .
The remaining n -k-1 --k-1 --l-2 points have to be connected with one of the
points P 3 , . . ., P, because otherwise it would be impossible to reach them from
Pi by a path of length --3 . But they can not be all connected with the same point
P; (3 j -- l) because this point would have valency lc. Let P, and P, be two
points (Z < r < s n) such that P, is connected with Pi, a nd P, with P; (3 - i -j 1) .
Then the (unique) path from P, to P, has length 4 ; this contradiction shows that
F3 (n, k) n for k, 2 .
3+ I
On the other hand Fig . 10 shows a graph G„ with V(G„) =k where --k 2
which has diameter and contains exactly one cycle (a triangle) and thus E(G .) =77 .
3
3
This completes the proof of the fact that F3 (n, k) = n for + 1 k 2.
Note that for n=2k+1 there is another extremal graph G2k+1 of diameter 3,
for which V(G2h+1)=1c and E(G,k+,)=2k+1, shown by Fig . 11 .
Fig . 10 Fig . II
all have valency --2, and at least one among them has valency k, we have
E(G,) - 2 (1+k+2(n-1-1» = n- 1 + 2 -1 .
to consider the case v=s . Now if v = s there exist in G„ at least s points which
are not connected to any of the Y,-s because these have valencies --k and thus
the total number of points connected with them is --s(k-(s-1)) :n-s . Let W
be such a point .
NowclearyWhstobcnedwithacX h by a path of length 3 and
therefore with each Y; by a path of length 2. Let U1 , . . ., Ut be the points connected
with W, then each Y, is connected with some U. Thus it follows
E(Gj (21+s(s-1)+2s+2t+2(n-I-s-t-1)) _
2
each of these points except one with k - s endpoints, and the last with n - s (k - s) -
-(s+l) points . (Clearly O--n-s(k-s)-(s +1)--k-s) .
Thus we obtain a graph G„ with V(G„) = k, D (Gj = 3 and E(G.) = n +
( s) -1-
This completes the proof of Theorem 4 .
Let us consider now F4 (n, k) . Clearly
F4 (n, k)=n-1
if k-fn-1 .
This can be seen as follows . Fig . 12 exhibits a tree of diameter 4 showing that
F4 (k2 + 1 , k) = k2
Clearly if (k -1) 2 + 1-- n < k2+1' we obtain a graph G„ exhibiting F4 (n, k) _
=n -1 by omitting from the graph on Fig . 12 k2 + 1 - n endpoints . We shall.
prove now
pk .2
Pk+3
THEOREM 5 .
4
1
F4 (k 2 +2,k)-k 2 +1+2 5 (k=2,3, . . .).
P2k P2kai
PROOF OF THEOREM 5 . Let Gkz+2 be an ext-
P2k+2
remal graph i .e . one which has k 2 + 2 points,
diameter 4, satisfies the condition V(Gk2 +2 )=k and
has F4 (k2 + 2, k) edges .
Pzk-l Let X I , . . ., X, n be the points of Gk z +2 having
valency --2, and let G,*n be the subgraph of Gk2+2
spanned by these points . We assert that each point
X'hastevlncy~2i G,*„ too . Suppose that
~° Pk2 k+a X I is an endpoint of GI*,,, andthX 2 is the only
Pk2-k+,,
pointfGmwhcX I is connected .ClearyX I
Pkz is connected with at least one endpoint Y I of
G k z +2 because it has valency 22 in C'-k2+2, thus it
Fig. 12 is connected with some point of Gk2+2 different
fromX Z and this point cannot be in G n*, and
thus is an endpoint of G k 2 +2 . Every point of Gk 2 +2 can be reached by supposition
from YI by a path of length 4 . However the number of points which can be
reached from YI by such a path is clearly
-2k-1+(k-1) 2 =k 2
which is a contradiction . Thus in G,*n each point has valency --2 . As the diameter
of G,*n is --4, it follows from (1 . 1) that G,*„ contains at least one point of valency
4 4
fm -1 ; thus the number of edges of G,*n exceeds (m -1) + i ( ~m -1) . Each point
in G,*„ can be connected with at most k-2 endpoints of Gk 2 +2 thus Ic e +2-m+
k2 + 2
+m(k-2)=m(k-1) and therefore m- k- 1 ,k+1 ; thus
4
1 "-
E(Gk2+z) k2+1+ 12 (Vm-1) --k2 +1+ 2 ~k .
Thus Theorem 5 is proved .
Note that the statement of Theorem 5 is trivial for k --16, because it states
only what we know already that if D(Gk2+2) =4 then G,2+2 can not be a tree .
To get an upper estimate for F4 (k2 +2, k) - k2 consider the following graph .
Take a graph Gk+s with V(Gk+s)=k, D(Gk+s)=2 and E(Gk+s)=2k+6 ; such
a graph exists according to Theorem 2 if k 8 (see Fig . 7 with l = 5) . This graph
has k + 2 points of valency 2 . Connect k out of these points with k - 2 new points
each and one with k - 3 new points . Thus we get a graph Gn with n = k 2 + 2 points,
such that V (G .) = k, D (Gn ) = 4 and E (G.) = k 2 + k + 3 . Thus
F4 (k2 +2, k)--k 2 +k+3 .
(4 .4) U4 (n) _ / n -1 .
It can be shown that
1 + ~2n - 3
(4 .5) Us (n)
2
further that for any fixed s ~--- 3 and n->-
(4 .6) U, (n) - ~n
and
Notice that if k decreases by one below the critical value U, (77), i .e . to Ud (n)-1,
there is a considerable increase in the value of F,,(n, k) if d is even, but not if d is
odd . As a matter of fact
FZ (n, U2 (n) -1) - Fz, (n, U2, (n)) _ (2n - 4) - (n -1) = n - 3
F3 (2k+1, k) - F3 (2k+1, k+1) _ (2k+1) -2k= I
and
F3 (2k+2, k) - F3 (2k+2, k+1)= (2k+3)-(2k+1)= 2
further as proved by Theorem 5
1 4-
F4 (k 2 +2, k)-F4 (k2 + 1, k) - 2 l k .
The situation is similar for d>4 .
We call attention to the following problems, left open in this paper :
PROBLEM 1 . Is the graph of Theorem 1 extremal in the sense that among all
graphs with n vertices and not containing any cycle of length 4 does it have the
maximal number of edges? (We have proved only that it is asymptotically extremal .)
We can prove the following result, which is connected with Problem 1 .
THEOREM 6 . If G„ is a graph in which any two points are connected by a path
of length 2 and which does not contain any cycle of length 4, then n=2k+ 1 and
G„ consists of k triangles which have one common
vertex (see Fig . 13) .
PROOF OF THEOREM 6 . Let G„ be a graph
with the required properties . Let P, be a point of
G„ having maximal valency . If P I is connected with
all the remaining points of G„ then evidently these
have to be connected by pairs, and G„ is of the
type described in Theorem 6 . Thus we may suppose
that G„ contains at least one point P Z which is
not connected with PI . It is easy to see that in this
case V(PZ ) = V(P I ) .
As a matter of fact there is a point P3 in G„
Fig . 13 which is connected with both P I and P2 . As there
must be a path of length 2 between P I and P3
there is a point P4 which is connected with both P, and P 3 . As there has to be a path
of length 2 between P2 and P3 , there is a point PS connected with both P 2 and P3 ,
which is clearly different from Pi , P2 , .P3 and P4 . Let Q 1 , Q2, . . ., Qk-2 be the
remaining points (besides P3 and P4) which are connected with Pi . Clearly P2
and P S are not among the Q, ; we have k~4 because v(P3 ) - 4-and by supposition
P, has the maximal valency .
Now from each of the points Q, there is a path of length 2 to P 2 ; thus for each
Q, (i =1, 2, . . ., k -2) there exists a point R, which is connected with both Q, and P 2 .
Clearly R, R; if i j because otherwise G„ would contain the cycle P I Q,R,Q j .
Further R, is different from P3 because if R, would be identical with P3 G„ would
contain the cycle P I Q,P3 P4 . Finally R, is different from P s because otherwise G„
REFERENCES
[11 ERDŐS, P .-RÉNYI, A . : On a problem in the theory of graphs (in Hungarian, with English and
Russian summaries), Publ. Math. Inst . Hung . Acad. Sci. 7/ A (1962) 623-641 .
[21 ERD6s, P . : On sequences of integers no one of which divides the product of two others and
on some related problems, Mitteilangen des Forschungsinstitutes fúr Math . and Mecha-
nik, Tomsk, 2 (1938) 74-82.
[31 REIMAN, L : Über ein Problem von K . Zarankiewicz, Acta Math . Acad. Sci. Hung . 9 (1958)
269-278 .
[41 HOFFMAN, A . J .-SINGLETON, R . R . : On Moore graphs with diameter 2 and 3, IBM Journal
of Research and Development 4 (1960) 497-504 .
151 BAER, R . : Polarities in finite projective planes, Bulletin of the American Math . Soc . 52 (1946)
77-93 .