private static Collection<FGEdge> cloneEdges(FunctionGraph currentGraph,
			Map<FGVertex, FGVertex> oldToNewCloneMap, Collection<FGEdge> originalEdges,
			FGController newController) {

		List<FGEdge> edges = new ArrayList<>();
		for (FGEdge edge : originalEdges) {
			FGVertex newStartVertex = oldToNewCloneMap.get(edge.getStart());
			FGVertex newVertex = oldToNewCloneMap.get(edge.getEnd());

			if (newStartVertex == null || newVertex == null) {
				Msg.debug(null, "no nulls!");
			}

			FGEdge newEdge = edge.cloneEdge(newStartVertex, newVertex);
			edges.add(newEdge);
		}
		return edges;
	}
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