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