Joint Degree Matrix (JDM): Realizability & Sampling
- JDM is an edge-count matrix that refines the degree sequence by detailing the exact number of edges between prescribed degree classes.
- It supports rigorous realizability criteria and constructive algorithms that verify, reconfigure, and sample graphs with prescribed degree mixing.
- JDM informs statistical modeling by revealing inherent sparsity and connectivity constraints which affect parameter estimability and sampling performance.
A joint degree matrix (JDM) is a refinement of the degree sequence of a simple graph: for each pair of degree classes, it specifies the exact number of edges joining them. In the standard undirected formulation, if , then counts edges between and . The same information is sometimes written as a joint degree vector (JDV), obtained by flattening the upper-triangular part of the symmetric matrix; in that sense JDV and JDM are identical in content up to vectorization and symmetry conventions (Czabarka et al., 2015). As a graph invariant, the JDM encodes degree mixing much more finely than the degree sequence and underlies realization theory, reconfiguration by swaps, Markov-chain sampling, and statistical models based on bidegree counts (Stanton et al., 2011).
1. Definition, notation, and relation to degree mixing
For an undirected graph , the JDM is the matrix with entries equal to the number of edges between nodes of degree and degree . In the equivalent JDV notation, one writes
for 0, and the matrix form is recovered by symmetry, 1 for 2 and 3 for 4 (Czabarka et al., 2015). The associated degree vector 5 has coordinates 6, the number of nodes of degree 7, and the total number of edges is
8
The JDM determines the degree counts by
9
equivalently 0 (Stanton et al., 2011).
This count-based object is the exact realization counterpart of the joint degree distribution (JDD). Once 1 and 2 are known, the degree distribution and joint degree distribution are
3
In that probabilistic sense, the JDM is an integer-valued realization of the degree-pair mixing pattern on edges. A common compression of that information is assortativity: the JDD captures the full degree mixing structure, whereas assortativity is only a sufficient statistic derived from it (Stanton et al., 2011).
The JDM does not encode isolated vertices. Several formulations state this explicitly: degree-4 vertices do not appear in the matrix, and the degree sequence is determined uniquely only up to isolated nodes (Stanton et al., 2011). In the JDV formulation used for extremal support questions, graphs are taken without isolated vertices unless noted otherwise (Czabarka et al., 2015).
2. Realizability and constructive characterization
The basic realizability problem asks when a prescribed matrix of degree-class edge counts is graphical. In count form, a matrix 5 is realizable by a simple graph if and only if the induced class sizes
6
are integers for all 7, and the capacity constraints
8
hold for all classes (Stanton et al., 2011). An equivalent class-based formulation writes the instance as 9, where the partition classes 0 are prescribed, every vertex in 1 must have degree 2, and 3 is the required number of edges between 4 and 5. Then realizability is characterized by
6
together with
7
These conditions are both necessary and sufficient (Amanatidis et al., 2015).
Constructive algorithms accompany both characterizations. One line of work builds, for each pair of classes 8, a nearly regular bipartite graph when 9 and a nearly regular internal graph when 0, maintaining balanced residual degrees inside every class; the stated runtime is 1 (Stanton et al., 2011). Another line first places the required inter- and intra-class edge counts arbitrarily and then rebalances degrees within each class by moving neighbors from overfull to underfull vertices; a more technical Balanced Degree Algorithm maintains
2
throughout the construction (Amanatidis et al., 2015).
Connected realizability is stricter than ordinary realizability. For JDM instances, the reduced instance
3
and the associated reduced capacities 4 are used to characterize whether a connected realization exists. The criterion is expressed through the existence of a valid tree for the reduced instance, equivalently through the absence of a certificate 5 violating a weighted connectivity inequality. A polynomial-time algorithm either constructs a connected realization or outputs such a certificate (Amanatidis et al., 2015).
3. Reconfiguration by swaps and uniform sampling
Local moves preserving the JDM are restricted swap operations. If 6, 7, and 8 lie in the same degree class 9, then the swap
0
preserves all JDM counts. This operation preserves the JDM because it replaces one edge from 1 to the degree class of 2 and one edge from 3 to the degree class of 4 by edges of the same class-pair types (Czabarka et al., 2013).
A central structural theorem is that the realization space of a fixed JDM on a fixed labeled vertex set is connected under restricted swap operations. The proof in "On Realizations of a Joint Degree Matrix" corrected an earlier erroneous argument by Stanton and Pinar; the error was that equal neighborhoods of a chosen vertex in two realizations do not imply that the truncated graphs obtained by deleting that vertex have the same JDM (Czabarka et al., 2013). The corrected proof proceeds by transforming arbitrary realizations into balanced realizations, then matching degree spectra vertex by vertex, and finally resolving the remaining differences inside each degree-class pair.
This connectivity result motivates Markov-chain samplers over the space of simple realizations. One construction uses a JDM configuration model and endpoint switches within degree neighborhoods. The simple-graph chain is aperiodic, because with probability 5 it stays in place, and it is symmetric and irreducible, so it converges to the uniform distribution on simple graphs with the prescribed JDM (Stanton et al., 2011). A related legal-switch chain on 6 chooses a legal switch uniformly and accepts it with probability
7
which again yields an aperiodic irreducible chain with uniform stationary distribution (Amanatidis et al., 2015).
The unresolved point is rapid mixing in full generality. Empirical evidence based on edge-indicator autocorrelation suggested quick mixing in practice and led to the heuristic recommendation of running the simple-graph chain for about 8 steps (Stanton et al., 2011). That heuristic does not amount to a general theorem, and several works explicitly leave the mixing rate of the full JDM realization chain open (Czabarka et al., 2013).
4. Balanced realizations and regimes with provable rapid mixing
Balanced realizations form a particularly tractable subspace. For a fixed graphical JDM 9, if 0 denotes the number of neighbors of 1 in class 2, and
3
for 4, then a realization is balanced if
5
for every class pair and every vertex in the source class. Equivalently, each partial degree is either the floor or the ceiling of the class average, so edges between two degree groups are distributed as uniformly as possible (Erdős et al., 2013).
Every graphical JDM admits a balanced realization, and the restricted-swap Markov chain on the set of all balanced realizations has polynomially bounded relaxation time: 6 The proof decomposes balanced realizations into labeled unions of almost regular and almost semi-regular bipartite factors, then applies a conductance-based factorization theorem together with fast mixing results for the factor chains (Erdős et al., 2013). This result is substantial but applies only to the balanced subset, not to all JDM realizations.
A later rapid-mixing theorem fully resolves the first nontrivial unrestricted case: JDMs with exactly two degree classes. In that setting, the restricted switch chain on 7 is rapidly mixing for all instances. The proof passes through an augmented state space 8, a hinge-flip chain, and strong stability with constant 9, and then transfers the flow bound to the natural switch chain by an embedding argument (Amanatidis et al., 2018).
These results define the current proven landscape. Rapid mixing is established for balanced realizations of arbitrary graphical JDMs and for all two-class JDM instances, but not for the full realization space with three or more degree classes (Erdős et al., 2013).
5. Extremal sparsity and statistical implications
The JDM has many formally possible cells but comparatively small achievable support. In JDV notation, the support is
0
and the number of possible positions is
1
The extremal problem is to maximize 2 over all 3-vertex graphs (Czabarka et al., 2015).
A lower bound comes from the half graph 4, with vertex set 5 and edge set
6
Its degree sequence is
7
and its support size is
8
Hence
9
Two upper-bound methods show that asymptotically only a little over half of all possible cells can be nonzero. One yields
0
and a combinatorial argument yields
1
Accordingly,
2
so only about half of the JDM cells can be nonzero in any graph (Czabarka et al., 2015).
This extremal sparsity has a direct modeling consequence. In the 3K or bidegree-distribution exponential random graph model, the sufficient statistics are the JDM entries. If an observed graph has 4, then the corresponding parameter is not estimable from that observation. Since even the most favorable graph can make only about half of the cells nonzero, a single network observation can support estimation of at most about half of the JDM-based parameters (Czabarka et al., 2015).
6. Generalizations, related models, and directed variants
The JDM is a special case of broader partition-based edge-count models. In the Partition Adjacency Matrix (PAM) model, the vertex set is partitioned into arbitrary classes 5, the degree sequence is given explicitly, and a matrix 6 prescribes the exact number of edges between and within the partition classes. Choosing the partition classes to be degree classes makes JDM an instance of PAM (Erdős et al., 2015). Skeleton graphs re-encode the same information as PAM: the partition classes become vertices of an auxiliary graph, allowed class pairs become bones, and bone weights prescribe edge counts. This formulation is especially useful when the number of partition classes is small or the interaction pattern has special topology, such as two classes or a skeleton graph with at most one cycle (Erdős et al., 2015).
| Formulation | Constraint object | Representative result |
|---|---|---|
| JDM | Edges between degree classes | Realizability, connectivity by restricted swaps, and exact-constrained sampling (Stanton et al., 2011) |
| PAM / skeleton graph | Edges between arbitrary partition classes | JDM is a special case; polynomial results for two classes and at-most-one-cycle skeleton graphs (Erdős et al., 2015) |
| Directed JDM + DCM | Source out-degree to target in-degree counts | Rescaled construction with exact realization of adjusted targets and bounded deviation of distributions (Yan et al., 30 Jul 2025) |
In the skeleton-graph setting, the exact two-class problem is already subtler than ordinary JDM reconfiguration. The number of crossing edges between the two classes has a parity restriction under swaps, realizability with exactly 7 crossing edges is decidable in polynomial time, and the realization space need not be connected under preserving swaps alone; connectivity is recovered by allowing preserving swaps together with double swaps (Erdős et al., 2015). This underscores that JDM-type constraints become structurally harder when degree classes are replaced by arbitrary partitions.
A directed specialization of the JDM was introduced for linearly rescaled sampling of large directed networks. There the matrix is
8
so rows index source out-degree classes and columns index destination in-degree classes. It is paired with a degree correlation matrix
9
After scaling by a factor 0, flooring 1, ceiling 2, and adding an adjustment matrix 3, the final targets
4
are realized exactly by a directed construction, while the original joint degree and degree-correlation distributions are preserved only approximately, with explicit sparsity-refined bounds (Yan et al., 30 Jul 2025). In that directed setting, empirical data on eight networks showed 5 below 6 in all cases and around 7 for node size larger than 8, reinforcing the broader theme that degree-pair matrices are typically sparse objects (Yan et al., 30 Jul 2025).
Across these formulations, the JDM serves as a canonical exact summary of degree mixing. It determines the degree sequence up to isolated vertices, supports clean realizability criteria, admits local reconfiguration moves, and yields both constructive and sampling-based graph models. At the same time, its realization spaces reveal sharp limits: full rapid-mixing theorems remain restricted, connected realizability is substantially subtler than ordinary realizability, and even extremal JDMs can occupy only about half of their potential cells.