We can create vertices with dynamic labels, e.g:
This approach doesn't work for edges as we don't have a parameterless addE overload. However, I think we can allow addE() and use Edge.DEFAULT_LABEL, just like we do for vertices; then the aforementioned approach would work.
As an aside: I would prefer addV(traversal) and addE(traversal) over addX().property(label, ...).
- links to