You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@s2graph.apache.org by st...@apache.org on 2018/04/05 08:41:32 UTC

[5/6] incubator-s2graph git commit: update limit

update limit


Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/97f7ec7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/97f7ec7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/97f7ec7f

Branch: refs/heads/master
Commit: 97f7ec7fcf9511aeb99cd69cb281d59674452441
Parents: 1f48e7b
Author: daewon <da...@apache.org>
Authored: Thu Apr 5 15:50:32 2018 +0900
Committer: daewon <da...@apache.org>
Committed: Thu Apr 5 15:50:32 2018 +0900

----------------------------------------------------------------------
 .../org/apache/s2graph/graphql/repository/GraphRepository.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/97f7ec7f/s2graphql/src/main/scala/org/apache/s2graph/graphql/repository/GraphRepository.scala
----------------------------------------------------------------------
diff --git a/s2graphql/src/main/scala/org/apache/s2graph/graphql/repository/GraphRepository.scala b/s2graphql/src/main/scala/org/apache/s2graph/graphql/repository/GraphRepository.scala
index d5b4aa8..626c0e6 100644
--- a/s2graphql/src/main/scala/org/apache/s2graph/graphql/repository/GraphRepository.scala
+++ b/s2graphql/src/main/scala/org/apache/s2graph/graphql/repository/GraphRepository.scala
@@ -92,7 +92,7 @@ class GraphRepository(val graph: S2GraphLike) {
   def getEdges(vertex: S2VertexLike, label: Label, _dir: String): Future[Seq[S2EdgeLike]] = {
     val dir = GraphUtil.directions(_dir)
     val labelWithDir = LabelWithDirection(label.id.get, dir)
-    val step = Step(Seq(QueryParam(labelWithDir).copy(limit = 2, includeDegree = false)))
+    val step = Step(Seq(QueryParam(labelWithDir).copy(limit = 100, includeDegree = false)))
     val q = Query(Seq(vertex), steps = Vector(step))
 
     graph.getEdges(q).map(_.edgeWithScores.map(_.edge))