Add var-length support to expand for sequences
Issue by jexp
Monday Feb 04, 2019 at 10:07 GMT
Originally opened as https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/1066
E.g. KNOWS*>,WORKS_WITH> or KNOWS*3..5>
Comment by InverseFalcon
Monday Feb 04, 2019 at 11:05 GMT
This will be a bit tricky, but it's worthwhile. Current implementation uses the current path length modulo the sequence length to figure out which part of the sequence we're on. To handle variable-length parts of the sequence (and possibly several of these within the sequence) we'd have to abandon this approach, and use something like a finite state machine that we pass along during expansion to track our position in the sequence.
Closing because this is already possible with Cypher variable-length patterns.