Implement vertex selection.