@Override
	public SampleGraph copy() {
		SampleGraph newGraph = new SampleGraph();

		for (SampleVertex v : vertices.keySet()) {
			newGraph.addVertex(v);
		}

		for (SampleEdge e : edges.keySet()) {
			newGraph.addEdge(e);
		}

		return newGraph;
	}
A graph for the {@link SampleGraphPlugin} that allows for filtering
Ghidra/Extensions/sample/src/main/java/ghidra/examples/graph/SampleGraph.java