private int getWidth(List<FcgVertex> vertices, int widthPadding) {

		RenderContext<FcgVertex, FcgEdge> renderContext = viewer.getRenderContext();
		Function<? super FcgVertex, Shape> shaper = renderContext.getVertexShapeTransformer();

		int width = 0;
		for (FcgVertex v : vertices) {
			width += shaper.apply(v).getBounds().width + widthPadding;
		}

		return width;
	}
Constructor

@param viewer the graph viewer
@param newVertexCollection the collection of new vertices and edges being addeds
@param useAnimation true to use animation
Ghidra/Features/GraphFunctionCalls/src/main/java/functioncalls/graph/job/BowTieExpandVerticesJob.java