【发布时间】:2021-02-18 20:58:49
【问题描述】:
我在远程服务器中使用 Janusgraph,通过 python 远程客户端连接到该服务器
from gremlin_python import statics
from gremlin_python.structure.graph import Graph
from gremlin_python.process.graph_traversal import __
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
graph = Graph()
connection = DriverRemoteConnection('ws://localhost:8182/gremlin', 'g')
g = graph.traversal().withRemote(connection)
但是当我尝试将图形导出到 GraphML 文件时
g.io("graph.xml").write().iterate()
它被保存在远程服务器而不是本地客户端。
有没有办法在本地保存 GraphML 文件? 提前谢谢!!!
【问题讨论】:
标签: python gremlin graphml gremlinpython