found my solution 

to remove relationships/edges
g.v(0).outE('friend').each{ g.removeEdge(it) }

to create relationships/edges 
[1,2,3,4, etc...].each{ g.addEdge(g.v(0), g.v(it), 'friend') }

simple once you know the answer :)   

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-add-remove-vertex-edge-functions-tp3402170p3404042.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to