[v[0], v[16], v[2], v[18], v[4], v[20], v[6], v[8], v[10], v[12], v[14]]
My question is: how do I clear the graph? I could find no way of doing it from python.
thanks
--
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/5b7021f8-7992-4f72-a98d-8acc322036c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gremlin Server doesn't provide a way to drop graphs. You can delete all the data in a graph. g.V().drop().iterate()Robert Dale
On Thu, Mar 28, 2019 at 11:59 AM <m...@edcast.com> wrote:
I am a newb to gremlin-python and want to create a graph and populate it with nodes and edges. Using the default graph 'g' I got an empty graph--I then, mostly by trial and error, learned how to add vertices one at a time by adding iterate();graph = Graph()g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g'))g.addV('person').property('name', 'bob').iterate()g.addV('person').property('name', 'alice').iterate()The problem is that my trial and error process added multiple duplicates:print g.V().toList()[v[0], v[16], v[2], v[18], v[4], v[20], v[6], v[8], v[10], v[12], v[14]]My question is: how do I clear the graph? I could find no way of doing it from python.thanks
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 gremli...@googlegroups.com.
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/b83b5dbf-e40e-444e-a285-f82f5bd7144d%40googlegroups.com.