Running through the intro to Gremlin Console lab. Adding vertices, worked well enough. But adding edges did not. Receive the following error message:
gremlin> g.V('1').addE('similarity').to(g.V('2')).property('weight', 0.8).next()
The child traversal of [GraphStep(vertex,[2])] was not spawned anonymously - use the __ class rather than a TraversalSource to construct the child traversal
Type ':help' or ':h' for help.
Display stack trace? [yN]
g.V('1').addE('similarity').to(__.V('2')).property('weight', 0.8).next()
g.V('1').addE('similarity').to(__.V('3')).property('weight', 0.4).next()
g.V('4').addE('similarity').to(__.V('3')).property('weight', 0.1).next()
g.V('5').addE('similarity').to(__.V('3')).property('weight', 0.8).next()
g.V('2').addE('similarity').to(__.V('5')).property('weight', 0.8).next()