public static <V extends VisualVertex, E extends VisualEdge<V>> 
		VisualGraphLayout<V, E> getVisualGraphLayout(Layout<V, E> graphLayout) {
	//@formatter:on

		Layout<V, E> layout = graphLayout;
		while (layout instanceof LayoutDecorator) {
			layout = ((LayoutDecorator<V, E>) layout).getDelegate();
		}

		if (!(layout instanceof VisualGraphLayout)) {
			return null;
		}

		return (VisualGraphLayout<V, E>) layout;
	}
Returns a rectangle that contains all vertices, in the layout space

@param vertices the vertices for which to calculate the bounds

@param vertexToBounds a function that can turn a single vertex into a rectangle
@return the bounds
Ghidra/Framework/Graph/src/main/java/ghidra/graph/viewer/GraphViewerUtils.java