gremlin python子图总是空的。

问题描述 投票:0回答:0

我用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获得子图?

gremlin subgraph gremlinpython
© www.soinside.com 2019 - 2024. All rights reserved.