Step - to

to · category: Modulators and options

Sets the in vertex of the edge add_e() creates (vertex id, path label or child traversal); with a Direction it moves like out()/in()/both().

Forms

to(arg1: Direction)
to(arg1: any)
to(arg1: array)
to(arg1: any, arg2: any)
to(arg1, …, arg10)

Example

g.v(1).to(Direction.OUT, "knows").values("name").to_list()   // ["josh", "vadas"]