protected boolean selectVertex(V vertex, VisualizationViewer<V, E> viewer) {
		MutableSelectedState<V> selectedVertexState = viewer.getSelectedVertexState();
		if (selectedVertexState == null) {
			return false;
		}

		selectedVertexState.isSelected(vertex);

		if (selectedVertexState.isSelected(vertex) == false) {
			selectedVertexState.clear();
			selectedVertexState.select(vertex, true);
		}

		return true;
	}
Selects the given vertex
@param vertex the vertex
@param viewer the graph viewer
@return true if the vertex is selected
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/mouse/AbstractJgtGraphMousePlugin.java