Skip to content

Commit 74a5cc0

Browse files
committed
fix weighted shortest path not check target vertex
Change-Id: If8688349c61f00fc16a50ccb31861758284784cc
1 parent f0d1146 commit 74a5cc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/SingleSourceShortestPathTraverser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public NodeWithWeight weightedShortestPath(Id sourceV, Id targetV,
7878
String weight, long degree,
7979
long skipDegree, long capacity) {
8080
E.checkNotNull(sourceV, "source vertex id");
81+
E.checkNotNull(targetV, "target vertex id");
8182
this.checkVertexExist(sourceV, "source vertex");
83+
this.checkVertexExist(targetV, "target vertex");
8284
E.checkNotNull(dir, "direction");
8385
E.checkNotNull(weight, "weight property");
8486
checkDegree(degree);

0 commit comments

Comments
 (0)