New to TigerGraph here…
Assume that I have these nodes and relationships already persisted in DB:
3 > 5 > 9 > 8 > 0
When 3 > 5 > 9 is given as a parameter (as a vertex list), I’d like to write a GSQL function that return node 8. So basically a function that returns the subsequent node given a matching-subset of previous nodes.
I was looking around in the tutorials for a while (on SELECT statements, ACCUM, etc… ), but couldn’t find a solid solution.