--
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/6604eab9-1cca-422f-a76e-dc518fcd9b32o%40googlegroups.com.
> Do you have other ideas?
g.V() |
|
g is the TraversalSource, by specifying V() you're saying that you are going to start at a set of elements that are of type Vertex, just like by specifying E() would specify starting at a set of elements that are of type Edge |
|
Gremlin Console to Gremlin Server |
Python Command Line to Gremlin Server |
|
gremlin> g.V() ==>v[0] ==>v[1] ==>v[2] ==>v[3] ==>v[4] … for all V |
>>> g.V() [['withStrategies', VertexProgramStrategy]][['V']]
>>> g.V().tolist() |
Traceback (most recent call last): File "<stdin>", line 1, in <module> |
TypeError: 'GraphTraversal' object is not callable |
g.V().both().toList() |
|
Get both adjacent vertices of the vertex, the in and the out. |
|
Gremlin Console to Gremlin Server |
Python Command Line to Gremlin Server |
|
gremlin> g.V().both().toList() ==>v[2] ==>v[2] ==>v[2] ==>v[2] ==>v[7] ==>v[20] ==>v[7] ==>v[20] ==>v[7] ==>v[20] ....gremlin> |
g>>> g.V().both().toList() [v[11], v[11], v[11], v[11], v[11], v[11], v[11], v[24], v[24], v[24], v[24], v[24], v[24], v[24], v[24], v[24], v[29], v[29], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[16], v[20], v[20], v[20], v[20], v[20], v[20], v[22], v[22], v[22], v[22], v[1], v[1], v[1], v[1], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[2], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7], v[7]] >>> |
--
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/0dafde29-a22d-4221-b741-4e995a1b37dbo%40googlegroups.com.
Good ol' GremlinDocs.... :)
Over the course of my project I expect to learn about and exercise gremlin console, gremlin server, gremlin python... and python.
--
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/36c82c4f-d446-4139-860a-d7d5af8faad9o%40googlegroups.com.
If you need to port queries more quickly remember that you can submit text strings as well as use in-line code (byte code)If you have run into issues other than the ones I listed above please do share them.
--
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/c7e173fd-cbe1-4637-9a5a-a92a305e062eo%40googlegroups.com.