public static FGData createClonedGraph(FGData data, FGController newController) {

		Function function = data.getFunction();
		FunctionGraph originalGraph = data.getFunctionGraph();

		FunctionGraph newGraph = cloneGraph(originalGraph, newController);
		cloneLayout(originalGraph, newGraph);

		return new FGData(function, newGraph);
	}
Clones the given function graph, creating a new graph with cloned versions of each
vertex and edge. 

@param data the data of the current graph
@param newController controller for the new graph
@return a new data object containing the new graph
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/FunctionGraphFactory.java