While Traversal makes use of Direction, Vertex supports only creation of outgoing edge. IMHO, it would be nice if Vertex.addEdge() allowed Direction as parameter. There are many use cases where bi-directional edges should be created, and single method as part of TP3 API makes the code much cleaner, IMHO. Otherwise, I have to create my own wrapper.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0cf82bc9-cfdc-4855-8372-29b5be487b69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I understand this. What I mean is that instead of callinga.addEdge(b); b.addEdge(a);I'd prefer to make a single calla.addEdge(Direction. BOTH, b).Right now I use an utility static methodEdge[] addEdge(DIRECTION, label, v1, v2, ...),but would love to see this as atomic operation and part of core Vertex API.And because some relationships are truly bi-directional in their nature, it would be even cooler if you allowed creation of essentially bi-directional edges as single entity, which would be returned by both inE(), outE(). And when I add a property to this edge once, it is present in both in() and out() calls, etc.But I understand the complications, and I am sure this was discussed somewhere in depth already...
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/9638e120-16fe-474f-9ad2-bd187702a373%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/9ed7409d-cb64-4cc6-a79b-9a50f63e9047%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/4f3d2aef-f1ab-4c20-838f-b51f502466b7%40googlegroups.com.