Gephi 0.9.1版本中缺少Neo4j插件

时间:2016-07-12 21:37:47

标签: plugins neo4j gephi

我对neo4j很新。在我的图表中,有超过5k个节点,neo4j浏览器没有显示所有节点,因为似乎有一个限制,图片也很混乱。 所以我正在尝试gephi 0.9并安装相同的。 但我无法找到neo4j数据库插件。我查了一下 工具 - >插件 - >可用的插件部分

如果我在这里遗漏了什么,请告诉我。

Plugin screenshot

提前致谢。

1 个答案:

答案 0 :(得分:2)

您实际上并不需要Geo的Neo4j插件,因为您可以使用neo4j-shell-tools来代替GraphML export,并在Gephi中打开它。

请注意export-graphml的选项解析有点错误(我应该打开一个关于它的问题);如果您想使用-t-r标记,则必须在-o之前指定它们,如下所示:

export-graphml -r -o out.graphml match ...

我还必须在GraphML文件中添加一些元数据描述,以便Gephi找到更多数据(我还应该打开一个问题,至少对于通用元数据)。文件的开头看起来像

<?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">

我改为

<?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">
<key attr.name="label" attr.type="string" for="node" id="labels"/>
<key attr.name="label" attr.type="string" for="edge" id="label"/>
<key attr.name="someProperty" attr.type="boolean" for="node" id="someProperty"/>
<!-- more descriptions of node properties -->
<graph id="G" edgedefault="directed">