org.apache.tinkerpop.gremlin.process.traversal.util

## 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 Summary

    Constructors
    Constructor and Description
    `TraversalMatrix(Traversal.Admin<S,E> traversal)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `<A,B,C extends Step<A,B>> C` | `getStepById(String stepId)`
    `Traversal.Admin<S,E>` | `getTraversal()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TraversalMatrix

          public TraversalMatrix(Traversal.Admin<S,E> traversal)

  - ### Method Detail

    - #### getStepById

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

    - #### getTraversal

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

Copyright © 2013–2020 Apache Software Foundation. All rights reserved.