How to stop traversing after edge class?
The graph for the query TRAVERSE bothE(), bothV() FROM ( SELECT FROM Title WHERE title_id IN [12] ) looks like this:
If I wrote (for blue graph):
TRAVERSE bothE("E14", "E5", "E6"), bothV() FROM ( SELECT FROM Title WHERE title_id IN [12] )
it don't gave me V 970.
How to construct a query that will return the part I need? I would like the whole graph to be returned if there exists an orange route.
I tested: TRAVERSE inE(..), outE(...), bothE() and WHILE $parent.$current.@class != "E13" bit it don't works.
I've seen https://stackoverflow.com/a/43776591/1194525, but if I understand correctly, MATCH can be used at a well known well.

E13- isCharacterrelation - bato3SELECT expand(both()) FROM Title WHERE title_id IN [12]? - Ivan MainettiTRAVERSE bothE(), bothV() FROM ( SELECT FROM Title WHERE title_id IN [12] ) WHILE $depth <=2- bato3