public final class IncidentToAdjacentStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy
.outE().inV()
, .inE().outV()
and .bothE().otherV()
and replaces these step sequences with .out()
, .in()
or .both()
respectively.
The strategy won't modify the traversal if:
path
step__.outE().inV() // is replaced by __.out() __.inE().outV() // is replaced by __.in() __.bothE().otherV() // is replaced by __.both() __.bothE().bothV() // will not be modified __.outE().inV().path() // will not be modified
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.VendorOptimizationStrategy, TraversalStrategy.VerificationStrategy
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
static IncidentToAdjacentStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, applyPrior
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
public static IncidentToAdjacentStrategy instance()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.