Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traversal not producing correct output. #5750

Closed
digambarpatil123 opened this issue Feb 18, 2016 · 5 comments
Closed

Traversal not producing correct output. #5750

digambarpatil123 opened this issue Feb 18, 2016 · 5 comments
Assignees
Labels

Comments

@digambarpatil123
Copy link

Hi All,

Can anybody tells me how to get all nodes as well as all edges properties in traversal.

For Example : If I run the following query
select from (TRAVERSE in(), inE() FROM (SELECT FROM Example_Class WHERE @Rid = #13:187));

Every time the result is changing.

Requirement : Get All inordered nodes and edges from specific node (#13:187).

@luigidellaquila
Copy link
Member

Hi @digambarpatil123

If i got it right, the following should do the job:

TRAVERSE inE(), outV() FROM #13:187

Thanks

Luigi

@digambarpatil123
Copy link
Author

Thanks @luigidellaquila

But the thing is, I know the destination node and I want to traverse in order in all the possible way. Now its showing for only one path and some of the nodes are missing from the traversal.

@digambarpatil123
Copy link
Author

If I execute select from (traverse in(), inE() from #13:187) sometimes its showing correct output but sometimes its not. Why the random behaviour.

@luigidellaquila
Copy link
Member

Hi @digambarpatil123

every node has both an in() and an inE(), the traversal does not guarantee that one is executed before the other, so you will have a random behavior here.

@digambarpatil123
Copy link
Author

Thanks @luigidellaquila

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants