Obtain the polynomial order from a FunctionSpace

If I create a FunctionSpace such as:

V = FunctionSpace(mesh, 'CG', 1)

how can I obtain the order (1) from V?

V.polynomial_degree() or something like that?

Thanks.

Consider V.ufl_element().degree()

1 Like