Step - simple_path

simple_path · simplePath · category: Filters

Keeps only traversers whose path never repeats an element.

Forms

simple_path()

Example

g.v(1).both().both().simple_path().count().next()   // 4