0

As the title suggests. How do I drop every vertex that does not have any edges?

1 Answers1

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