File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 2121
2222import static com .baidu .hugegraph .traversal .algorithm .HugeTraverser .DEFAULT_DEGREE ;
2323import static com .baidu .hugegraph .traversal .algorithm .HugeTraverser .DEFAULT_ELEMENTS_LIMIT ;
24- import static com .baidu .hugegraph .traversal .algorithm .HugeTraverser .DEFAULT_PATHS_LIMIT ;
2524
2625import java .util .ArrayList ;
2726import java .util .HashSet ;
@@ -171,7 +170,7 @@ private static class Request {
171170 @ JsonProperty ("max_depth" )
172171 public int maxDepth ;
173172 @ JsonProperty ("limit" )
174- public long limit = Long .valueOf (DEFAULT_PATHS_LIMIT );
173+ public long limit = Long .valueOf (DEFAULT_ELEMENTS_LIMIT );
175174 @ JsonProperty ("count_only" )
176175 public boolean countOnly = false ;
177176 @ JsonProperty ("with_vertex" )
Original file line number Diff line number Diff line change 2222import static com .baidu .hugegraph .traversal .algorithm .HugeTraverser .DEFAULT_CAPACITY ;
2323import static com .baidu .hugegraph .traversal .algorithm .HugeTraverser .DEFAULT_DEGREE ;
2424import static com .baidu .hugegraph .traversal .algorithm .HugeTraverser .DEFAULT_ELEMENTS_LIMIT ;
25- import static com .baidu .hugegraph .traversal .algorithm .HugeTraverser .DEFAULT_PATHS_LIMIT ;
2625
2726import java .util .ArrayList ;
2827import java .util .HashSet ;
@@ -187,7 +186,7 @@ private static class Request {
187186 @ JsonProperty ("capacity" )
188187 public long capacity = Long .valueOf (DEFAULT_CAPACITY );
189188 @ JsonProperty ("limit" )
190- public long limit = Long .valueOf (DEFAULT_PATHS_LIMIT );
189+ public long limit = Long .valueOf (DEFAULT_ELEMENTS_LIMIT );
191190 @ JsonProperty ("with_vertex" )
192191 public boolean withVertex = false ;
193192 @ JsonProperty ("with_path" )
You can’t perform that action at this time.
0 commit comments