Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
Change-Id: I3addbb2ffd44b53c4edd0241327ba6d4f4895126
  • Loading branch information
Linary committed Jun 8, 2021
1 parent e12a45c commit c01e998
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public String create(@Context GraphManager manager,
"Invalid target vertex label '%s'");
}

Vertex srcVertex = getVertex(g, jsonEdge.source, null);
Vertex tgtVertex = getVertex(g, jsonEdge.target, null);
Vertex srcVertex = getVertex(g, jsonEdge.source, jsonEdge.sourceLabel);
Vertex tgtVertex = getVertex(g, jsonEdge.target, jsonEdge.targetLabel);

Edge edge = commit(g, () -> {
return srcVertex.addEdge(jsonEdge.label, tgtVertex,
Expand Down

0 comments on commit c01e998

Please sign in to comment.