As the title suggests. How do I drop every vertex that does not have any edges?
Asked
Active
Viewed 37 times
1 Answers
0
You could do:
g.V().where(bothE().limit(1).count().is(lt(1)).drop()
or perhaps:
g.V().where(__.not(bothE())).drop()

stephen mallette
- 45,298
- 5
- 67
- 135
-
Brilliant! I wish you a great summer:) – Bendik Skarpnes Jul 26 '21 at 13:07