yellow dotted line grab tool
In Blender you can begin to grab either using the right mouse button or the G key.

After that you can move the wanted vertices, but if during this movement you hit G again, the movement is limited to the edges connected to the displaced vertex.



In complement, that can be used with more than one vertex, here are some behaviors :