@@ -132,7 +132,7 @@ public String post(@Context GraphManager manager,
132132 E .checkArgument (!request .withVertex && !request .withPath && !request .withEdge ,
133133 "Can't return vertex, edge or path when count only" );
134134 }
135- HugeTraverser .checkTraverseMode (request .traverse_mode );
135+ HugeTraverser .checkTraverseMode (request .traverseMode );
136136
137137 LOG .debug ("Graph [{}] get customized kout from source vertex '{}', " +
138138 "with steps '{}', max_depth '{}', nearest '{}', " +
@@ -151,7 +151,7 @@ public String post(@Context GraphManager manager,
151151 Steps steps = steps (g , request .steps );
152152 KoutRecords results ;
153153 try (KoutTraverser traverser = new KoutTraverser (g )) {
154- if (HugeTraverser .isTraverseModeDFS (request .traverse_mode )) {
154+ if (HugeTraverser .isTraverseModeDFS (request .traverseMode )) {
155155 results = traverser .dfsKout (sourceId , steps ,
156156 request .maxDepth ,
157157 request .nearest ,
@@ -238,18 +238,18 @@ private static class Request {
238238 @ JsonProperty ("with_edge" )
239239 public boolean withEdge = false ;
240240 @ JsonProperty ("traverse_mode" )
241- public String traverse_mode = HugeTraverser .TRAVERSE_MODE_BFS ;
241+ public String traverseMode = HugeTraverser .TRAVERSE_MODE_BFS ;
242242
243243 @ Override
244244 public String toString () {
245245 return String .format ("KoutRequest{source=%s,steps=%s,maxDepth=%s" +
246246 "nearest=%s,countOnly=%s,capacity=%s," +
247247 "limit=%s,withVertex=%s,withPath=%s," +
248- "withEdge=%s,traverse_mode =%s}" , this .source ,
248+ "withEdge=%s,traverseMode =%s}" , this .source ,
249249 this .steps , this .maxDepth , this .nearest ,
250250 this .countOnly , this .capacity , this .limit ,
251251 this .withVertex , this .withPath , this .withEdge ,
252- this .traverse_mode );
252+ this .traverseMode );
253253 }
254254 }
255255}
0 commit comments