Traversal Patterns

The chapters of this section describe the steps that shape a walk through the graph: loops, labels and paths, branches, side effects and the sack. Several of them are short pages about the exact rules in a corner of TinkerPop's semantics and the few places where Graphersal differs.

PageWhat it covers
Recursive Traversalsrepeat() with times(), until(), emit(), loops(); breadth and depth first
Bulk and Barriershow equal traversers are merged, barrier(), why it stays invisible
where() Start and End Labelswhere() with labels and predicates, filter() versus where()
Repeated Labels: select with Popselect(Pop.first/last/all/mixed, ...), the Groovy copy-paste table
Path Windowsfrom()/to() on path(), simple_path(), cyclic_path()
union() as a Start Stepg.union(...) without v()
Branch Children and Global Statehow union(), choose() and branch() feed their children
Option Keys of choose() and branch()option() keys and unmatched traversers
The by() Modulator: Single-by Stepssteps that take one by()
Set Side Effects, tree() as a Side Effectaggregate(), store(), cap(), tree("key")
Sack and Operatorswith_sack(), sack(), Operator, reducers