Created
February 4, 2022 12:08
-
-
Save mvodep/c2dcdfa4f6aa92abb8c9b5704cdfe86a to your computer and use it in GitHub Desktop.
This file contains 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
1 sensor = dev.V().has("Sensor", "sensor_name", "1002688"). | |
2 next() | |
3 dev.V(sensor). // look up a sensor | |
4 until(hasLabel("Tower")). // until you reach a tower | |
5 repeat(out("send"). // keep walking out the send edge | |
6 simplePath()) // remove cycles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment