method

add_vertex

add_vertex(name, payload, root = false)
public

Adds a vertex with the given name, or updates the existing one. @param [String] name @param [Object] payload @return [Vertex] the vertex that was added to `self`