graphdb/src/main/java/com/orientechnologies/orient/graph/graphml/OGraphSONUtility.java
public Edge edgeFromJson(final String json, final Vertex out, final Vertex in) throws IOException {
    final JsonParser jp = jsonFactory.createParser(json);
    final JsonNode node = jp.readValueAsTree();
    return this.edgeFromJson(node, out, in);
  }
public Edge edgeFromJson(final String json, final Vertex out, final Vertex in) throws IOException {
    final JsonParser jp = jsonFactory.createParser(json);
    final JsonNode node = jp.readValueAsTree();
    return this.edgeFromJson(node, out, in);
  }
Creates an edge from GraphSON using settings supplied in the constructor.