Created
November 15, 2022 13:15
-
-
Save spmallette/3fff9f9dcd1026f923e36252749778de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g.withSack(0). | |
V().has('airport','code', frm). | |
repeat(__.outE('route').sack(sum).by('dist').inV().simplePath()). | |
until(__.has("code",to).or_().loops().is_(maxstops)). | |
has('code', to). | |
limit(sample). | |
order(). | |
by(__.sack()). | |
local(__.union(__.path().by('code').by('dist'),__.sack()).unfold().fold()). | |
limit(limit). | |
toList()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment