The following query works for me:
CREATE QUERY test(Vertex seed) FOR GRAPH abc SYNTAX v2 {
Frontier (ANY) = {seed};
Frontier = SELECT v FROM Frontier:u-((_|_>):e)-ANY:v WHERE true;
print Frontier;
}
However, this query, with the directionality reversed, does not:
CREATE QUERY test(Vertex seed) FOR GRAPH abc SYNTAX v2 {
Frontier (ANY) = {seed};
Frontier = SELECT v FROM Frontier:u-((_|<_):e)-ANY:v WHERE true;
print Frontier;
}
I get the following error:
line 30:12 extraneous input ‘.*’ expecting ‘}’
Parsing encountered 1 syntax error(s)
The query test cannot be added!
How should I get this to work?
Thanks