Returns True if deg_sequence can be realized by a simple graph.
The validation proceeds using the Havel-Hakimi theorem. Worst-case run time is: O(s) where s is the sum of the sequence.
| Parameters : | deg_sequence : list
|
|---|---|
| Returns : | valid : bool
|
Notes
The ZZ condition says that for the sequence d if

then d is graphical. This was shown in Theorem 6 in [R227].
References
| [R227] | (1, 2) I.E. Zverovich and V.E. Zverovich. “Contributions to the theory of graphic sequences”, Discrete Mathematics, 105, pp. 292-303 (1992). |