Abstract
Given a finite sequence D of nonnegative integers, let M(D) denote its maximum element and S(D) its sum. It is known that D is realizable as a degree sequence by some graph if and only if S(D) is even, and by a loopless graph if and only if the even integer S(D) − 2M(D) ⩾ 0. Here it is shown that if the even integer 2M(D) − S(D) is positive, then one-half this integer is the minimum number of loops in graphs realizing D, and that the minimum-loop realization is unique. These results are extended to a more general loop-cost minimization problem in which loops incident at different vertices can have different costs. The possible numbers of loops, in graphs realizing D, are also determined.
Keywords: graph, loopless graph, degree sequence, incidence sequence, partition
1. Introduction
This note deals with finite undirected graphs. Our usage of “graph” permits both loops (edges from a vertex to itself) and multiple links (bundles of two or more edges with the same pair of distinct endpoints). The degree of vertex v in graph G, denoted dG(v), is the number of incidences upon v of edges of G; here a loop is considered to be twice-incident upon its single endpoint. Any enumeration of the set of the vertices of G gives rise to a sequence of nonnegative integers which is called a degree sequence of G; it is clearly unique up to permutations.
Given any sequence of nonnegative integers, we set and M(D) = maxi di. If graph G is such that D is a degree sequence of G, we shall say that G realizes D. The theory of such realizations (and their analogs for directed graphs) has a considerable literature including papers [1], [5]–[7]1 on topics close to the present one; an extensive account is given, for example, in Chapter 6 of Chen [2]. Here we require only the two basic results of that theory ([3], [7]):
Theorem A. Sequence D is realized by some graph G if and only if S(D) (and hence S(D) − 2M(D)) is even; in that case G can be chosen free of multiple links.
Theorem B. Sequence D is realized by some loopless graph if and only if S(D) is even and 2M(D) ⩽ S(D).
Our purpose here is to provide explicit statements and a convenient reference for some elementary results, probably largely of “folklore” nature, related to Theorem B. We shall determine the possible numbers of loops in graphs realizing a given sequence D, and also solve an associated loop-cost minimization problem in which loops incident at different vertices can have different costs.
2. Results and Analyses
Our first objective is to round out the information contained in Theorem B, by presenting the following result.
Theorem 1. If sequence D has 2M(D) − S(D) = 2L where L is a positive integer, then D can be realized by a unique graph with L loops, but not by a graph with fewer loops. The “unique graph” has all its loops incident at the unique vertex of maximum, degree.
It will be convenient to base this theorem’s proof on the following:
Lemma. With D as in Theorem 1, any graph which realizes D has at least L loops at its unique vertex of maximum degree.
Proof (of Lemma): (a) Let G be a graph which realizes D; choose the numbering so that M(D) = d1. Since 2M(D) > S(D), v1 will be the only vertex of maximum degree. Suppose G has L1 loops at v1.
(b) By Euler’s handshaking lemma, the number of edges of G is S(D)/2. Of these, the S(D)/2 − L1 which are not loops at v1 each have at least one endpoint in , and so each contributes either 1 or 2 to the sum . It follows that S(D)/2 – L1 ⩽ S(D) − M(D), yielding
Proof (of Theorem 1): (a) By the Lemma, no graph which realizes D can have fewer than L loops.
(b) Choose the numbering so that M(D) = d1. Then a graph with L loops, which realizes D, is obtained by placing L loops at v1 and drawing di edges from v1 lo vi for 2 ⩽ i ⩽ n; the correctness of this graph’s degree at v1 follows from
(c) Now let G be any graph which realizes D and has exactly L loops; by the Lemma, all these loops are incident at v1. Let be the number of edges from v1 to vi in G, for 2 ⩽ i ⩽ n. Then on the one hand , and on the other hand for 2 ⩽ i ⩽ n. It follows that for 2 ⩽ i ⩽ n, so that G coincides with the graph constructed in (b). This completes the proof of Theorem 1.
We turn now to a more general problem. Suppose given a sequence of nonnegative real numbers, and interpret ci as the “cost” per loop incident at vi; i.e., if graph G with vertex-set has λi loops attached at vi, then the total loop-cost of G is . We seek a graph G which realizes a given sequence D as degree-sequence, and does so at minimum total loop-cost. (Theorem 1 treated the special case in which all (ci = 1.)
By Theorem A, this problem has a solution if and only if S(D) − 2M(D) is even. When this is the case and 2M(D) ⩽ S(D), it follows from Theorem B that the optimal solution is found as a loopless graph realizing D. The remaining possibility is resolved by the following theorem, which shows that the solution is essentially independent of the cost-structure C.
Theorem 2. Suppose 2M(D) − S(D) = 2L where L is a positive integer. Then an optimal solution, unique if all c1 > 0, is given by the “unique graph” of Theorem 1.
Proof: This is an immediate consequence of the Lemma and Theorem 1.
The uniqueness assertions in Theorems 1 and 2 bear the same relation to uniqueness results by Hakimi [4], Owens and Trent [7] and Senior [8], as do the remaining assertions of Theorems 1 and 2 to Theorem B.
Finally, we wish to determine the possible numbers of loops in graphs which realize a given sequence D. Theorem B and Theorem 1 specify the minimum of these numbers; it remains to specify their maximum, and to ascertain which values between the two can actually arise. To this end it is convenient to define, for , Odd (D) to be the cardinality of {i: di is odd}.
Theorem 3. Sequence D, with its number of positive entries different from 2 and with S(D) even, is realized by a graph with precisely k loops if and only if 2k lies between max (0, 2M(D) − S(D)) and S(D) − Odd(D) inclusive.
Proof: (a) Theorems B and 1 give max(0, 2M(D) − S(D)) as the minimum possible value for 2k.
(b) From we determine a sequence of nonnegative integers as follows: by requiring di = 2δi, + 1 if di is odd, di = 2δi if di is even. Then S(D) = 2S(Δ) + Odd(D), so that Odd(D) is even. Clearly any graph with vertex-set that realizes D can have at most δi loops incident at vi, thus at most S(Δ) = (S(D) − Odd(D))/2 loops in all. This upper bound is achieved by attaching δi loops to vi for 1⩽i⩽n, pairing off in any way the members of the even-eardinality set {vi: di is odd} counted by Odd(D), and joining the vertices in each pair by a single edge. So S(D) − Odd(D)) is indeed the maximum value for 2k.
(c) Beginning with the graph constructed in (b), repeat the following step as long as possible, producing a sequence of graphs each realizing D and having one fewer loop than its predecessor: if the current graph has three distinct vertices, vi, vp, vq such that vi bears a loop ℓ and some edge e joins vp and vq, then replace ℓ and e by a pair of edges from vi to vp and to vq respectively.
Let G be the graph with which this process terminates and let λj be the number of loops of G at vi (1⩽j⩽n), for a total of k loops. If h = 0, we are done, so assume k>0. For any vertex vi such that λi>0, it follows from the construction of G that
(*) |
It follows that there is either just one such vertex, say v1, or else exactly two, say v1 and v2, with d1 − 2λ1 = d2 − 2λ2 and with dj = 2λj = 0 for all j>2. The latter case is ruled out by the theorem’s hypothesis on D. In the former case, (*) yields
from which it readily follows that
again we are done.
It only remains to treat the exceptional case excluded by the hypothesis of Theorem 3.
Theorem 4. Sequence D, with exactly two positive entries and with S(D) even, is realized by a graph with precisely k loops if and only if 2k lies between 2M(D) − S(D) and S(D) − Odd(D) inclusive and 2k ≡ 2M(D) − S(D) (mod 4).
Proof: (a) Number so that d1 and d2, with d1 ⩾ d2, are the two positive entries of D. Since S(D) = d1 + d2 is even, d1 and d2 have the same parity; Odd(D) is 2 or 0 according as the parity is odd or even.
(b) The arguments in (a) and (b) of Theorem 3’s proof still apply, to show that S(D) − Odd(D)) and 2M(D) − S(D) are respectively double the maximum and minimum numbers of loops in graphs that realize D. These extreme values of 2k differ by 2d2 − Odd(D)), a multiple of 4.
(c) Define as in the proof of Theorem 3. Form a graph realizing D which has δ1 loops incident at v1, δ2 loops incident at v2, and Odd(D) edges between v1 and v2. Then repeat the following step as long as possible, producing a sequence of graphs each realizing D and having two fewer loops (hence, a value of 2k less by 4) than its predecessor: if the current graph has loops at both v1 and v2, then delete one loop at each of these vertices and replace them by two new edges between v1 and v2.
The final graph in this process has a number k of loops (all at v1) given by
Thus all values of 2k identified in Theorem 4’s statement are indeed achieved.
(d) To show that no other values can be achieved, consider any graph realizing D, with λj loops at vj (j = 1,2) for a total of k = λ1 + λ2 loops. Counting the edges from v1 to v2 in two different ways (by incidences on v1 and by incidences on v2) yields the relation d1 − 2λ1 = d2 − 2λ2, so that
thus the residue of 2k (mod 4) is as stated in the theorem.
The following observation is included for completeness. Let λG(v) denote the number of loops incident on vertex v in graph G with vertex-set ; then is the loop-sequence of G corresponding to this enumeration of the vertices. Given a pair (D,Λ) of sequences and of nonnegative integers, it is natural to ask whether there exists a graph G with D = D(G) and Λ = Λ(G). But this is the case if and only if is the degree sequence of a loopless graph, and a necessary and sufficient condition for that to hold is found by applying Theorem B to D − 2Λ.
Footnotes
Numbers in brackets indicate literature references at the end of the paper.
AMS Subject Classification: 05C35, 05A17
3. References
- [1].Ayoub J. N.; Frisch I. T. Degree realization of undirected graphs in reduced form. J. Franklin Institute. 289 (4): 303–312; 1970. April. [Google Scholar]
- [2].Chen W. K. Applied Graph Theory. Amsterdam: North-Holland Publishing Co.; 1976. 542 p. [Google Scholar]
- [3].Hakimi S. L. On realizability of a set of integers as degrees of the vertices of a linear graph I. J. Soc. Indust. Appl. Math. 10 (3): 496–506; 1962. September. [Google Scholar]
- [4].Hakimi S. L. On realizability of a set of integers as degrees of the vertices of a linear graph II. Uniqueness. J. Soc. Indust. Appl. Math. 11 (1): 135–147; 1963. March. [Google Scholar]
- [5].Kleitman D. J. Minimal number of multiple edges in realization of an incidence sequence without loops. SIAM J. Appl. Math. 18 (1): 25–28; 1970. January. [Google Scholar]
- [6].Owens A. B. On determining the minimum number of multiple edges for an incidence sequence. SIAM J. Appl. Math. 18 (1): 238–240; 1970. January. [Google Scholar]
- [7].Owens A. B.; Trent H. M. On determining minimal singularities for the realization of an incidence sequence. SIAM J. Appl. Math. 15 (2): 406–418: 1967. March. [Google Scholar]
- [8].Senior J. K. Partitions and their representative graphs. Amer. J. Math. 73 (3): 663–689; 1951. July. [Google Scholar]