When there is no generation specified, degree function should go with one of the generators. The priority is organized in the way the latest SymPy's degree operates.
An example in latest SymPy:

```
>>> degree(x*y)
1
>>> degree(x**2*y)
2
>>> degree(x*y**2)
1
```