Step - has_label
has_label · hasLabel · category: Filters
Keeps elements whose label is one of the given labels (or matches a predicate); without arguments it keeps the elements that have a label, so not(__.has_label()) selects the unlabeled ones (Graphersal extension).
Forms
has_label()
has_label(arg1: any)
has_label(arg1: array)
has_label(arg1: any, arg2: any)
has_label(arg1, …, arg10)
Example
{ g.add_v().to_list(); [g.v().has_label("software").count().next(), g.v().not(__.has_label()).count().next()] } // [2, 1]