How to create a vertex with a custom label?

16 views
Skip to first unread message

Alexandr Porunov

unread,
Mar 15, 2018, 10:51:33 AM3/15/18
to Gremlin-users
Hello,

I know that in Tinkerpop 3 there is a possibility to create vertices with lables but I didn't find any example or explanation on how to do it. Could somebody show me an example of creating a vertex with custom label or share the link to the documentation / post.

Best regards,
Alexandr

Robert Dale

unread,
Mar 15, 2018, 10:53:43 AM3/15/18
to gremli...@googlegroups.com
http://tinkerpop.apache.org/docs/current/reference/#addvertex-step

g.addV('person') creates a vertex with the 'person' label.

Robert Dale

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/2e975b8d-8dbf-4933-ad1f-6d07844a93e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Kuppitz

unread,
Mar 15, 2018, 10:54:56 AM3/15/18
to gremli...@googlegroups.com

Kelvin Lawrence

unread,
Mar 15, 2018, 4:53:15 PM3/15/18
to Gremlin-users
Hi Alexandr, I have some examples in the tutorial I am writing. You might find this link of use:
http://kelvinlawrence.net/book/Gremlin-Graph-Guide.html#addnodes

Cheers
Kelvin
Reply all
Reply to author
Forward
0 new messages