neo4j - 使用节点/边缘标签将 Neo4j 导出到 GraphML?

标签 neo4j gephi graphml

有没有人能够导出 Gephi 或 yEd 可读的 GraphML,它在 Gephi/yEd 中正确显示标签?

我正在使用最新的 Neo4j 社区和 APOC;我可以很好地从 APOC 导出 GraphML,然后导入到 Gephi/yEd 中,但似乎没有办法加载属性/键/数据元素,以便可以显示有用的标签。

最佳答案

将此行与其他键一起添加到 graphml 文件的顶部。

<key id="labels" for="node" attr.name="labels"/>

然后,您可以将“labels”属性复制到 Gephi 中的 Label 列。

关于neo4j - 使用节点/边缘标签将 Neo4j 导出到 GraphML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41766769/

相关文章:

r - igraph 中的地理布局

javascript - 使用算法 A* 寻找路径

haskell - 在 Haskell 中阅读 GraphML

javascript - 我可以在 d3 中加载 .gml 吗?

data-structures - Neo4j如何在内部存储数据?

node.js - 如果结束 Node 存在则创建 Node 和关系(否则仅创建第一个 Node )

neo4j - 将数据从 Neo4j 流式传输到 Gephi - 无法读取 url

python - 将数据从 CSV 加载到 Neo4j

macos - 启动 Neo4j 失败 : Address localhost:7474 is already in use, 无法在 Mac OSX 上绑定(bind)到它