com.tinkerpop.gremlin.tinkergraph.process.graph.TinkerTraversal Maven / Gradle / Ivy
package com.tinkerpop.gremlin.tinkergraph.process.graph;
import com.tinkerpop.gremlin.process.graph.step.sideEffect.StartStep;
import com.tinkerpop.gremlin.process.graph.strategy.GraphTraversalStrategyRegistry;
import com.tinkerpop.gremlin.process.graph.util.DefaultGraphTraversal;
import com.tinkerpop.gremlin.tinkergraph.process.graph.strategy.TinkerGraphStepStrategy;
import com.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class TinkerTraversal extends DefaultGraphTraversal {
public TinkerTraversal(final TinkerGraph graph) {
super();
this.sideEffects().setGraph(graph);
this.addStep(new StartStep<>(this));
}
@Override
public void prepareForGraphComputer() {
super.prepareForGraphComputer();
this.strategies().unregister(TinkerGraphStepStrategy.class);
}
}