我用gremlin python连接gremlin服务器是这样的。
g = traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin', 'g'))
但是当我使用subgraph(这里引用的是) http:/tinkerpop.apache.orgdocscurrentreference#subgraph-step。):
g.V().has(*vertex).repeat(__.inE().subgraph('subGraph').outV()).times(1).cap('subGraph').toList()
结果总是这样的空。[{}]
我到底错在哪里?如何使用gremlin-python获得子图?