Returns True if the sequence is a valid degree sequence.
A degree sequence is valid if some graph can realize it. Validation proceeds via the Havel-Hakimi algorithm.
Worst-case run time is:
Parameters : | sequence : list or iterable container
|
---|---|
Returns : | valid : bool
|
References