Discussion:
[orientdb] Graph Traversal using Java API
s***@gmail.com
2018-08-06 18:30:12 UTC
Permalink
HI All,
I am new to OrientDB and i am trying to perform graph traversal using
Gremlin pipes API.
I have a graph in form of
(Parent1:Vertex)-(HAS_CHILD:EDGE)->(Child1:Vertex)-(HAS_CHILD:EDGE)->(child2:Vertex)-*....
and so on the hierarchy.

I have this in the OrientGraph object.
I am trying to perform DFS traversal starting at any given vertex and
traverse to find all the child nodes it has. like immediate child, den
child's child and so on. But i am not able to perform this traversal. Any
code examples or help will
be useful.

Regards,
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Prakash Deivakani
2018-08-07 04:04:02 UTC
Permalink
Hi what did you try? Did you try using a queue?
Post by s***@gmail.com
HI All,
I am new to OrientDB and i am trying to perform graph traversal using
Gremlin pipes API.
I have a graph in form of
(Parent1:Vertex)-(HAS_CHILD:EDGE)->(Child1:Vertex)-(HAS_CHILD:EDGE)->(child2:Vertex)-*....
and so on the hierarchy.
I have this in the OrientGraph object.
I am trying to perform DFS traversal starting at any given vertex and
traverse to find all the child nodes it has. like immediate child, den
child's child and so on. But i am not able to perform this traversal. Any
code examples or help will
be useful.
Regards,
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Prakash Deivakani
2018-08-07 04:05:22 UTC
Permalink
Or a stack?
Post by Prakash Deivakani
Hi what did you try? Did you try using a queue?
Post by s***@gmail.com
HI All,
I am new to OrientDB and i am trying to perform graph traversal using
Gremlin pipes API.
I have a graph in form of
(Parent1:Vertex)-(HAS_CHILD:EDGE)->(Child1:Vertex)-(HAS_CHILD:EDGE)->(child2:Vertex)-*....
and so on the hierarchy.
I have this in the OrientGraph object.
I am trying to perform DFS traversal starting at any given vertex and
traverse to find all the child nodes it has. like immediate child, den
child's child and so on. But i am not able to perform this traversal. Any
code examples or help will
be useful.
Regards,
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Suraj Shankar
2018-08-07 05:10:07 UTC
Permalink
I have tried using gremlin pipes.
pipeline.start(startvertex).as(“x”).out(“child”).loop(“x”,w->true,e->true)
Post by Prakash Deivakani
Or a stack?
Post by Prakash Deivakani
Hi what did you try? Did you try using a queue?
Post by s***@gmail.com
HI All,
I am new to OrientDB and i am trying to perform graph traversal using
Gremlin pipes API.
I have a graph in form of
(Parent1:Vertex)-(HAS_CHILD:EDGE)->(Child1:Vertex)-(HAS_CHILD:EDGE)->(child2:Vertex)-*....
and so on the hierarchy.
I have this in the OrientGraph object.
I am trying to perform DFS traversal starting at any given vertex and
traverse to find all the child nodes it has. like immediate child, den
child's child and so on. But i am not able to perform this traversal. Any
code examples or help will
be useful.
Regards,
--
---
You received this message because you are subscribed to the Google
Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...