Step - both
both · category: Walking the graph
Moves to the adjacent vertices over incoming and outgoing edges, optionally only edges with the given labels.
Forms
both()
both(arg1: any)
both(arg1: array)
both(arg1: any, arg2: any)
both(arg1, …, arg10)
Example
g.v(4).both("knows").values("name").to_list() // ["marko"]