private void setGraphDisplayOptions(GraphDisplayOptions options) {
		if (graphDisplayOptions != null) {
			graphDisplayOptions.removeChangeListener(graphDisplayOptionsChangeListener);
		}
		graphDisplayOptions = options;
		graphDisplayOptions.addChangeListener(graphDisplayOptionsChangeListener);
		graphRenderer.setGraphTypeDisplayOptions(options);
		refreshViewer();

	}
configure a preferred size based on the size of the graph to display
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java