I have a slightly different question than this post:
How do I find the degree of a multivariable polynomial automatically?
I would like to compute the degree of a multivariate polynomial but with respect to a gradation that is I put weights on variables to compute the order.
For instance, $p=x^2y + z^3 + y^4$ with the gradation $(1,1,2)$ for $(x,y,z)$ is of degree $6$.
I have that to compute the order of a monomial $x^i y^j z^k$ I apply
ordMonome[mon]:=Log[mon]/.{x->Exp[1],y->Exp[1],z->Exp[2]};