Step - add_label

add_label · addLabel · category: Changing the graph

Adds a label to the label set of each incoming vertex and passes it on (Graphersal extension; edges use set_label()).

Forms

add_label(arg1: string)

Example

g.v(1).add_label("employee").labels().next()   // ["person", "employee"]

See also