Trying to create edges between vertices using gremlin-python, but it is not working
jupyter notebook
"g.V('ProdDev').addE('belongs').to(g.V('Dept'))"
edges should create....currently empty edges are creating...
Trying to create edges between vertices using gremlin-python, but it is not working
jupyter notebook
"g.V('ProdDev').addE('belongs').to(g.V('Dept'))"
edges should create....currently empty edges are creating...
When you use
g.addV('Season')
that creates a vertex with the label
Season.
However, when you use
g.V('Season')
Gremlin is looking for a vertex with an ID (not a label) of Season.
If you need to use the label you can do
g.V().hasLabel('Season')
Also, mid traversal, you should not use g.V()
rather you should do
to(V().hasLabel('Season'))