This method adds a vertex to the database.
When working with a Graph database, whether transactional or non-transactional, when you want to add a vertex to the graph, use this method. This adds a new vertex record to the database and ensures that the relevant edges are also updated, keeping the graph consistent.
To add an edge from within your function, see
var vertex = db.addVertex(<record-id>)
<record-id>Defines the Record ID.