>>311173383
The mask button is one fo the little squares that looks like the face of a cube in the top left of the screen in 2.8+.

Hit 'L' hovering near a vertex to select all vertices linked to it. You can decide what the link boundayr should be in the little tools menu that pops up (at least in 2.8+, idk about 2.7)