tree
Create a tree of the traversal.
Synopsis
tree()
Description
The tree() step is a sideEffect step that returns a tree of the traversal.
Examples
Find John Doe’s network as a tree:
g.V().has('person','name','John Doe').
repeat(out('knows').simplePath()).
until(__.not(out('knows').simplePath())).
tree().
by('name')