diff --git a/computer-algorithm/src/main/java/org/apache/hugegraph/computer/algorithm/path/shortest/SingleSourceShortestPath.java b/computer-algorithm/src/main/java/org/apache/hugegraph/computer/algorithm/path/shortest/SingleSourceShortestPath.java index c9a9891d3..953f956dd 100644 --- a/computer-algorithm/src/main/java/org/apache/hugegraph/computer/algorithm/path/shortest/SingleSourceShortestPath.java +++ b/computer-algorithm/src/main/java/org/apache/hugegraph/computer/algorithm/path/shortest/SingleSourceShortestPath.java @@ -128,8 +128,8 @@ public void init(Config config) { if (this.targetQuantityType != QuantityType.ALL) { this.targetIdSet = new IdSet(); for (VertexInputJson targetVertex : targetVertices) { - targetIdSet.add(IdUtil.parseId(IdCategory.parse(targetVertex.idType), - targetVertex.id)); + targetIdSet.add(IdUtil.parseId(IdCategory.parse(targetVertex.getIdType()), + targetVertex.getId())); } }