addVertex

How to specify a vertex.

Synopsis

addVertex(label, 'label_name', 'key', 'value', 'key', 'value')

Description

Vertex data is inserted using addVertex. A previously created vertex label must be specified.

Examples

Create a vertex with a vertex label person with the partition key person_id and property name:
graph.addVertex(label, 'person','person_id', UUID.fromString('46ad98ac-f5c9-4411-815a-f81b3b667921'), 'name', 'John DOE')