Adding method to verify Erdős–Gallai theorem on a given degreeSequence.