private FGTempGraph buildGraph(VisualGraph<FGVertex, FGEdge> visualGraph) {

		FGTempGraph tempGraph = new FGTempGraph();

		Collection<FGVertex> vertices = visualGraph.getVertices();
		for (FGVertex v : vertices) {
			tempGraph.addVertex(v);
		}

		Collection<FGEdge> edges = visualGraph.getEdges();
		for (FGEdge e : edges) {
			tempGraph.addEdge(e.getStart(), e.getEnd(), e);
		}

		return tempGraph;
	}
A layout that delegates work to the Jung layout specified in the constructor.
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/layout/jungrapht/JgtNamedLayout.java