Yes, you can define any gradient you like.
In that example I showed it with the gradient in the Y direction.
To use something different you need to create a value for each point of the input mesh according to its location.
Here’s a file showing examples of sizing by surface u parameter, or by proximity to a point
sized_mesh2.gh (233.4 KB)
For piping the mesh edges in R6 you can use the .gha from this post