Skip to content

Commit

Permalink
fix weighted shortest path not check target vertex (#1307)
Browse files Browse the repository at this point in the history
Change-Id: If8688349c61f00fc16a50ccb31861758284784cc
  • Loading branch information
zhoney authored Dec 23, 2020
1 parent aa6f638 commit b513c63
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public NodeWithWeight weightedShortestPath(Id sourceV, Id targetV,
String weight, long degree,
long skipDegree, long capacity) {
E.checkNotNull(sourceV, "source vertex id");
E.checkNotNull(targetV, "target vertex id");
this.checkVertexExist(sourceV, "source vertex");
this.checkVertexExist(targetV, "target vertex");
E.checkNotNull(dir, "direction");
E.checkNotNull(weight, "weight property");
checkDegree(degree);
Expand Down

0 comments on commit b513c63

Please sign in to comment.