Step - has_layer
has_layer · category: Filters
Keeps the vertices and edges whose layer origin is one of the given names ("base", "added", "modified"); on a graph without layers everything is "base" (Graphersal extension).
Forms
has_layer()
has_layer(arg1: any)
has_layer(arg1: array)
has_layer(arg1: any, arg2: any)
has_layer(arg1, …, arg10)
Example
[g.v().has_layer("base", "added").count().next(), g.v().has_layer("modified").count().next()] // [6, 0]