Class TraversalMatrix<S,E>

java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.util.TraversalMatrix<S,E>

public final class TraversalMatrix<S,E> extends Object
A TraversalMatrix provides random, non-linear access to the steps of a traversal by their step id. This is useful in situations where traversers becomes detached from their traversal (and step) and later need to be re-attached. A classic use case is TraversalVertexProgram on GraphComputer.
Author:
Marko A. Rodriguez (http://markorodriguez.com)
  • Constructor Details

  • Method Details

    • getStepById

      public <A, B, C extends Step<A, B>> C getStepById(String stepId)
    • getTraversal

      public Traversal.Admin<S,E> getTraversal()