Map<ObjectType, ObjectType> edgeTypes) {
Set<Edge> edges = originalGraph.edgeSet();
for (Edge edge : edges) {
ObjectType newType = edgeTypes.get(edge.getType());
if (newType != null) {
edge = new Edge(edge);
String sourceId = (String) edge.getSource().getValue(
ObjectType.PARAMETER_ID);
String targetId = (String) edge.getTarget().getValue(
ObjectType.PARAMETER_ID);
Vertex source = graph.findVertex(sourceId);