Received from [email protected] on Thu, Dec 24, 2015 at 10:03:32AM EST:
> In our graph all edges are typed, so all links in your image would need to
> be distinctly named. And this is exactly what I am trying to recover --
> give me all neighboring vertices and for each neighbor give me the type of
> edge that links to it.
>
> Lev's solution works, but I'd prefer to do this in SQL, since we are
> talking to orientdb via pyorient and are yet to figure out how to work with
> gremlin tables in it
>
> -=- Leonid
The following Gremlin approach seems to work with pyorient:
dests = client.gremlin("edges=[]; g.v('<vertex id>').outE().store(edges).inV()")
edges = client.gremlin('edges')
--
Lev Givon
Bionet Group | Neurokernel Project
http://lebedov.github.io/
http://neurokernel.github.io/
--
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.