Usually family contains one father and mother but multi children, In gremlin I can say to get a family:
g.V(61464).as('me').outE('father').inV().as('father').select('me').outE('mother').inV().as('mother').select('me').inE('father').outV().as('child').select('father', 'mother', 'child')
this will return the following:
- ==> *{father=v[16408], mother=v[450608], child=v[139504]}*
- ==> *{father=v[16408], mother=v[450608], child=v[163880]}*
- ==> *{father=v[16408], mother=v[450608], child=v[176368]}*
but I want to get them in this way:
==> {father=v[16408], mother=v[450608], children=[v[139504], v[163880], v[176368]]
Is there any way to do that in gremlin and more specific in Gremlin.Net. Thanks