You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "joyemang33 (via GitHub)" <gi...@apache.org> on 2023/03/18 14:39:17 UTC

[GitHub] [incubator-hugegraph] joyemang33 commented on issue #2142: [Bug] Incorrect result triggered by "repeat(out()).times(x).count()" or "repeat(out()).times(x).dedup().count()"

joyemang33 commented on issue #2142:
URL: https://github.com/apache/incubator-hugegraph/issues/2142#issuecomment-1474868133

   > It is not a bug.
   > 
   > I'm not sure about your expected behavior. If you want to output all the paths traversed, you can try `g.V().repeat(out()).times(50).emit().count()`
   
   Many thanks for your response.
   I agree with you that ```If you want to output all the paths traversed, you can try g.V().repeat(out()).times(50).emit().count()```, and it can count the path of length not greater than 50.
   I want to count the path of length exactly 50 by ```g.V().repeat(out()).times(50).count()```, and the result should be equal to the result of  ```g.V().repeat(out()).times(50).emit().count() - g.V().repeat(out()).times(49).emit().count() ```.
   However, the first query returns zero while the second result returns a non-zero correct result.
   If I replace "50" with a smaller number such as 5, the two results are the same.
   ![1679150173554](https://user-images.githubusercontent.com/37923722/226112687-2db317d6-eee3-4791-a59a-b882ed5496e0.png)
   ![1679150193934](https://user-images.githubusercontent.com/37923722/226112706-093912f6-c32e-4ab8-932a-c53d2f7967f0.png)
   ![1679150210716](https://user-images.githubusercontent.com/37923722/226112719-41a3ce94-77fc-418a-9d6a-cb58e2b56280.png)
   
   Therefore, I still have questions about this issue and believe there is room for improvement.
   In addition, the output of the query in HugeGraph differs from that of other graph databases, and all other graph databases produce the same non-zero result as the second query. 
   Do you mean that the other graph databases are incorrect, or that there is no path of length 50 in the relevant graph?
   
   Would it be possible to temporarily re-add the BUG label until you have thoroughly reviewed this point?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org