I wish to combine several graphml graphs into a single graph.
These graphml files are created using TinkerGraph.
This causes the node ID's to be reused which, while unique within their respective files, are not unique across multiple graphml files; the graphml files reuse vertex ids.
When I read these files into JanusGraph there is no problem as it generates new node ids.
When I read these files into a TinkerGraph object I get the error...
Vertex with id already exists: 0
When I change the <node id="0"> in a graphml file to some other value it simply moves the collision to another node.
Is there a way to change this default behavior to generate new unique ids on a read?
Here is a sample of the type of commands being used.
conf = new BaseConfiguration()
graph1 = TinkerGraph.open(conf)
g1 = traversal().withEmbedded(graph1)
I have, here, indicated the use of a configuration to try to find a vertexIdManager which generates new unique ids. My original attempt made no use of a `config`.