From bc67d2857dd583c4267fe479334773dbd456b963 Mon Sep 17 00:00:00 2001 From: imbajin Date: Tue, 4 Jan 2022 16:10:51 +0800 Subject: [PATCH] change limit to 5k --- .../java/com/baidu/hugegraph/api/traversers/PathsAPI.java | 4 ++-- .../baidu/hugegraph/traversal/algorithm/PathsTraverser.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PathsAPI.java b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PathsAPI.java index 59d7b3a6fe..877340b491 100644 --- a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PathsAPI.java +++ b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PathsAPI.java @@ -114,8 +114,8 @@ public String post(@Context GraphManager manager, "The targets of request can't be null"); E.checkArgumentNotNull(request.step, "The step of request can't be null"); - E.checkArgument(request.depth > 0 && request.depth <= 10000, - "The depth of request must be in (0, 10000], " + + E.checkArgument(request.depth > 0 && request.depth <= 5000, + "The depth of request must be in (0, 5000], " + "but got: %s", request.depth); LOG.debug("Graph [{}] get paths from source vertices '{}', target " + diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/PathsTraverser.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/PathsTraverser.java index 1ae98aed0a..61570ec6f9 100644 --- a/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/PathsTraverser.java +++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/PathsTraverser.java @@ -51,8 +51,8 @@ public PathSet paths(Id sourceV, Directions sourceDir, sourceDir == targetDir.opposite(), "Source direction must equal to target direction" + " or opposite to target direction"); - E.checkArgument(depth > 0 && depth <= 10000, - "The depth must be in (0, 10000], but got: %s", depth); + E.checkArgument(depth > 0 && depth <= 5000, + "The depth must be in (0, 5000], but got: %s", depth); checkDegree(degree); checkCapacity(capacity); checkLimit(limit);