MyVIPWebTools logo

Graph Degree Sequence Validator — Check If a Degree Sequence Is Graphical

Our Graph Degree Sequence Validator checks whether a given sequence of non-negative integers can actually be the degree sequence of some simple graph, applying the Erdős–Gallai theorem's prefix-sum conditions directly and reporting exactly which condition fails if the sequence isn't graphical.

Quick Answer

Enter a degree sequence below to instantly check whether it's graphical (realizable as an actual graph) via the Erdős–Gallai theorem.

Enter whole numbers separated by commas or spaces, e.g. 3,3,2,2,1,1.

How to Use the Graph Degree Sequence Validator — Erdős–Gallai Theorem Online

  1. 1

    Enter a degree sequence as comma- or space-separated whole numbers, e.g. 3,3,2,2,1,1.

  2. 2

    Click 'Calculate' to check whether the sequence is graphical.

  3. 3

    Review the step-by-step verification of the Erdős–Gallai conditions.

Why Use Graph Degree Sequence Validator — Erdős–Gallai Theorem Online?

Not every list of numbers can be the degree sequence of an actual graph — the Erdős–Gallai theorem gives an exact test: sort the sequence in descending order, and for every prefix length k, the sum of the first k degrees must not exceed k(k−1) plus the sum of min(degree, k) over the remaining vertices. A sequence passing every one of these prefix conditions (and having an even total, by the Handshake Lemma) is guaranteed to be realizable as a simple graph. This calculator runs that exact check and reports precisely where it fails, if it does.

Frequently Asked Questions

Related Tools

Graph Degree Sequence Validator — Erdős–Gallai Theorem Online | MyVIPWebTools