Gremlin Command to read a full tree from a vertex #2991
Unanswered
kaintharinder
asked this question in
Q&A
Replies: 1 comment
-
Did you try something along the lines of:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a tree that starts from a page vertex which can have multiple instances connected through "child" edge.
Each Instance can have multiple segments connected through edge , "targets"
I need to write a Gremlin query such that it returns me the full tree starting from the root page node to leaf segment node.
Structure is like
page (v1)----child----instance(v2)(v3) (one to many)
instance (v2)---- targets----- segment(v4)(v5)(one to many)
instance (v3)---- targets----- segment(v5)(v6)(one to many)
expected Result : v1,v2,v3,v4,v5,v6
Beta Was this translation helpful? Give feedback.
All reactions