Merge the results of several traversals.
union(traversal, ... )
union()step is a branch step and merges the results of an arbitrary number of traversals that are specified.
Recipes reviewed by John Smith and the people he knows:
g.V().has('person','name','John Smith').union(out('reviewed'), both('knows').out('reviewed')).dedup()