protected boolean selectEdge(E edge, VisualizationViewer<V, E> viewer) {

		MutableSelectedState<E> selectedVertexState = viewer.getSelectedEdgeState();
		if (selectedVertexState == null) {
			return false;
		}

		selectedVertexState.isSelected(edge);

		if (selectedVertexState.isSelected(edge) == false) {
			selectedVertexState.clear();
			selectedVertexState.select(edge, true);
		}
		return true;
	}
Selects the given edge
@param edge the edge
@param viewer the graph viewer
@return true if the edge is selected
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/mouse/AbstractJgtGraphMousePlugin.java