@Override
	public GDirectedGraph<V, E> copy() {

		JungToGDirectedGraphAdapter<V, E> newGraph =
			(JungToGDirectedGraphAdapter<V, E>) emptyCopy();

		for (V v : delegate.getVertices()) {
			newGraph.addVertex(v);
		}

		for (E e : delegate.getEdges()) {
			newGraph.delegate.addEdge(e, e.getStart(), e.getEnd());
		}

		return newGraph;
	}
A class that turns a {@link Graph} into a {@link GDirectedGraph}.

@param <V> the vertex type
@param <E> the edge type
Ghidra/Framework/Graph/src/main/java/ghidra/graph/jung/JungToGDirectedGraphAdapter.java