tinkerpop/blueprints — Issue #223: API Consistency for AddVertex
Author: spmallette
Created: 2012-03-01 14:50:49+00:00
State: open
Labels: asap

Noticed an inconsistency between the documented methods addVertex and addEdge on the Graph interface and the implemented behaviour in TinkerGraph. The interface docs say "If the object identifier is already being used by the graph to reference a vertex, then that reference vertex is returned and no vertex is created" however the TinkerGraph implementation throws a RuntimeException if a vertex (or edge) is added that has the same identifier.

Reported here:

https://groups.google.com/forum/?hl=en&fromgroups#!topic/gremlin-users/_A5iXCOF5BQ