您实际上不需要 Gephi 的 Neo4j 插件,因为您可以使用neo4j-shell-tools来执行GraphML 导出,并在 Gephi 中打开它。
请注意,选项解析export-graphml有点错误(我应该就此提出一个问题);如果您想使用-t或-r标志,则必须在 之前指定它们-o,如下所示:
export-graphml -r -o out.graphml match ...
Run Code Online (Sandbox Code Playgroud)
我还必须向 GraphML 文件添加一些元数据描述,以便 Gephi 找到更多数据(我还应该就此提出一个问题,至少对于通用元数据)。文件的开头看起来像
export-graphml -r -o out.graphml match ...
Run Code Online (Sandbox Code Playgroud)
我改为
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<graph id="G" edgedefault="directed">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1758 次 |
| 最近记录: |