@Override
	public void close() {
		graphDisplayProvider.remove(this);
		if (listener != null) {
			listener.dispose();
			listener = null;
		}

		componentProvider.closeComponent();

		if (graphDisplayOptions != null) {
			graphDisplayOptions.removeChangeListener(graphDisplayOptionsChangeListener);
		}
	}
Gather all source and target vertices until there are no more available.
@return all the vertices in the component(s) of the selected vertices
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java