Hi Pieter, those direct traversal modifications are only possible through the Traversal.Admin interface. TraversalHelper has a method for that; it's called insertTraversal.
Cheers, Daniel On Thu, May 26, 2016 at 9:46 PM, pieter-gmail <[email protected]> wrote: > Hi, > > I am creating traversal snippets in code which ultimately comes together > in one traversal. > > I have done this before and generally the pattern is, > > traversal = g.V().this().that(); > if (something) { > traversal = traversal.this().that() > } else { > traversal = traversal.thisOther().thatOther() > } > > However now I'd like to have the if statements in the object that holds > the state. It will get called from many places. > > Something like, > > traversal.append(someObject.customTraversal()); > > Is this already possible or is "append" something that is worth adding? > > Thanks > Pieter > >
