That's a bug IMHO btw. `degree` should be using the total degree.