grex icon indicating copy to clipboard operation
grex copied to clipboard

Support for removeVertex

Open gching opened this issue 10 years ago • 1 comments

Is there support for removing a vertex? For example, given that you find a vertex by its name index

g.removeVertex(g.V('name','uniq_name'))

gching avatar Nov 09 '14 12:11 gching

The removeVertex() method hasn't yet been added to the GraphWrapper object. In the meantime, you can use gRex in printf mode (see this section in the documentation) and manually add this line to your script.

The printf mode also has the benefit of allowing bound parameter to be sent along your script (for better performance and security).

I'll leave this issue open until I add this method.

jbmusso avatar Nov 10 '14 15:11 jbmusso