As shown in the figure, I want to select the vertices that are connected to a selected vertice. In the left side of the figure, you can see a vertex of a cube is selected. My task is to select the circled vertices as shown in the right side of the figure.
I've tried "Ctrl+numpad+" (Grow selection), that gives me incorrect results as seen in the right figure, it selects some other vertices too (marked as question marks). Please advice me a way of doing the same and preferably in python script as I need to do this for a whole lot of objects.