@Override
	public void selectVertices(Set<AttributedVertex> selected, EventTrigger eventTrigger) {
		// if we are not to fire events, turn off the selection listener we provided to the
		// graphing library.
		boolean fireEvents = eventTrigger != EventTrigger.INTERNAL_ONLY;
		switchableSelectionListener.setEnabled(fireEvents);

		try {
			Set<AttributedVertex> vertices = graphCollapser.convertToOutermostVertices(selected);
			MutableSelectedState<AttributedVertex> nodeSelectedState =
				viewer.getSelectedVertexState();
			nodeSelectedState.clear();
			if (!vertices.isEmpty()) {
				nodeSelectedState.select(vertices, fireEvents);
				if (!fireEvents) {
					// need to make explicit call since event not fired
					selectEdgesConnecting(vertices);
				}
				scrollToSelected(vertices);
			}
			viewer.repaint();
		}
		finally {
			// always turn on the selection listener
			switchableSelectionListener.setEnabled(true);
		}
	}
fire and event to say the focused vertex changed
@param vertex the new focused vertex
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java