from gremlin_python.structure.graph import Graph
from gremlin_python.process.graph_traversal import __
from gremlin_python.process.strategies import *
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
from gremlin_python.process.traversal import *
#pprint.pprint(g.V().has("bulkLoader.vertex.id",'1').bothE().otherV().toList())
pprint.pprint(g.V().has("bulkLoader.vertex.id",'1').bothE().where(otherV().has("bulkLoader.vertex.id",'2')))
Traceback (most recent call last):
File "/home/shenqiqing/graphdb/janusgraph-0.2.0-hadoop2/py/test_gremlin.py", line 40, in <module>
pprint.pprint(g.V().has("bulkLoader.vertex.id",'1').bothE().where(otherV().has("bulkLoader.vertex.id",'2')))
NameError: name 'otherV' is not defined