arXiv:2610.41810cs.DMOct 2026

Manuscript Offprint

arXiv:2610.41810

Degree Realization with Maximum Matching

Amotz Bar-Noy, Igor Kalinichev, David Peleg, Dror Rawitz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The MAXIMUM MATCHING DEGREE REALIZATION problem requires, for a sequence dd of nn positive integers, to compute a realizing graph (whose degree sequence corresponds to dd) with the maximum possible matching. We present a polynomial-time algorithm for this problem. The decision version of this problem requires to determine whether a sequence dd admits a realization with a matching of size ν\nu (without computing such a realization). Recently, it was shown that it can be done by verifying a series of inequalities. We improve the existing characterization by reducing the number of inequalities.

Keywords: Degree sequences, Degree realization, Graph algorithms, Maximum matching.

*An extended abstract was presented at the 37th International Workshop on Combinatorial Algorithms (IWOCA) 2026. Supported by US-Israel BSF grant 2022205. †City University of New York (CUNY), USA. ‡Weizmann Institute of Science, Israel. §Bar Ilan University, Ramat-Gan, Israel.

1 Introduction

The DEGREE REALIZATION (DR) problem requires to decide, for a given non-increasing sequence d=(d1,…,dn)d = (d_1, \ldots, d_n) of positive integers, if there exists some nn-vertex (simple undirected) graph G=(V,E)G = (V, E) such that deg⁡G(i)=di\deg_G(i) = d_i for every i∈{1,…,n}i \in \{1, \ldots, n\}, and to construct such a graph if it exists. Such a sequence dd is called graphic.

Two central questions on realizations concern characterizations (i.e., necessary and sufficient conditions) for a sequence to be graphic, and efficient algorithms for finding realizing graphs. A necessary and sufficient condition for a given sequence of integers to be graphic (also implying an O(n)O(n) decision algorithm) was presented by Erdős and Gallai [7]. Havel [16] and Hakimi [15] described an O(∑idi)O(\sum_i d_i)-time algorithm that given a sequence dd of integers proves that the given sequence is not graphic or computes an mm-edge graph realizing it, where m=12∑i=1ndim = \frac{1}{2} \sum_{i=1}^n d_i.

Here, we study the variant of the problem where, given a sequence with possibly many realizing graphs, the goal is to find a realizing graph that also optimizes some quality measure. Hereafter, we refer to such problems as optimized realization problems. Concretely, we consider the classical MAXIMUM MATCHING (MM) problem. For a graph G=(V,E)G = (V, E), a matching is an edge set M⊆EM \subseteq E, such that ee and e′e' do not share a vertex, for every two distinct e,e′∈Me, e' \in M. The size of the maximum matching in GG is denoted by

MM(G)=max⁡{∣M∣∣M is a matching in G}.\mathrm{MM}(G) = \max\{|M| \mid M \text{ is a matching in } G\}.

Given a graphic sequence dd, we look for a realizing graph GG with the maximum possible matching. For example, for d=(2,2,2,2,2,2)d = (2,2,2,2,2,2), a realization G1G_1 consisting of a 6-vertex cycle is better than a realization G2G_2 consisting of two triangles, since MM(G1)=3\mathrm{MM}(G_1) = 3 whereas MM(G2)=2\mathrm{MM}(G_2) = 2. The resulting optimized realization problem is formally defined as follows. Letting

MM(d)=max⁡{MM(G)∣G is a realization of d},\mathrm{MM}(d) = \max\{\mathrm{MM}(G) \mid G \text{ is a realization of } d\},

the MM DEGREE REALIZATION (MM-DR) problem requires finding a realizing graph GG attaining MM(d)\mathrm{MM}(d).

Similarly, one may define optimized realization problems for other graph optimization problems, such as MAXIMUM CLIQUE, MAXIMUM INDEPENDENT SET, MINIMUM VERTEX COVER, and MINIMUM DOMINATING SET. Their optimal values on a given graph GG are defined as MC(G)\mathrm{MC}(G), MIS(G)\mathrm{MIS}(G), MVC(G)\mathrm{MVC}(G), and MDS(G)\mathrm{MDS}(G), respectively. The corresponding optimized realization problems on degree sequences are named MAXIMUM CLIQUE DEGREE REALIZATION (MC-DR), MIS DEGREE REALIZATION (MIS-DR), MVC DEGREE REALIZATION (MVC-DR), and MDS DEGREE REALIZATION (MDS-DR), and their optimal values on a given dd are denoted by MC(d)\mathrm{MC}(d), MIS(d)\mathrm{MIS}(d), MVC(d)\mathrm{MVC}(d), and MDS(d)\mathrm{MDS}(d), respectively.

Interestingly, while the graph versions of most of these optimization problems are NP-hard, the optimized realization versions of MC, MIS, MVC, and MDS have been shown to be polynomial-time solvable. Rao [24] gave a characterization of sequences realizable by a graph containing a clique KℓK_\ell of size ℓ\ell. This result was based on a phenomenon known as the prefix lemma, which for MC says that if dd has a realization containing KℓK_\ell, then it has a realization such that the ℓ\ell vertices of maximum degree induce a clique KℓK_\ell. This result implies a polynomial-time algorithm for MC-DR (see, e.g., [13]). Consequently, it follows readily that polynomial-time algorithms also exist for MIS-DR and MVC-DR. Note that a prefix lemma also applies to MVC. This prefix property is satisfied by MDS [13], and it was recently used to obtain a characterization and a realization algorithm for MDS-DR [3].

As for MM-DR, the prefix property is satisfied also by MM [14]. Moreover, due to this property, MM(d) can be computed efficiently using a result by Kundu [19] (see details below). However, so far it was not known how to exploit this property in order to derive a polynomial-time algorithm for MM-DR. This problem was handled for some restricted graph families in [5], but the general problem was left open.

Recently, Erdős et al. [9] studied MM-DR. Given a sequence dd and an integer ν\nu, they presented an Erdős-Gallai type characterization, based on a system of O(n)O(n) inequalities, which is satisfied if and only if dd has a realization with a matching of size ν\nu. Applying these characterizations to a given degree sequence, the maximum size of a matching can be computed efficiently, although a specific realization is not provided.